id
id: string
number
number: string
status
status:
| "DRAFT"
| "CANCELLED"
| "COMPLETED"
| "IN_PROGRESS"
| "PLANNED"
| "PAUSED"
priority
priority: "LOW" | "NORMAL" | "HIGH" | "URGENT"
plannedQuantity
plannedQuantity: number
producedQuantity
producedQuantity: number
plannedStartDate
plannedStartDate: Date | null
plannedEndDate
plannedEndDate: Date | null
actualStartDate
actualStartDate: Date | null
actualEndDate
actualEndDate: Date | null
totalProductionTime
totalProductionTime: number | null
isTimerRunning
isTimerRunning: boolean
notes
notes: string | null
createdAt
createdAt: Date
updatedAt
updatedAt: Date
companyId
companyId: string | null
clientId
clientId: string | null
finishedProductId
finishedProductId: string
routingId
routingId: string | null
equipmentId
equipmentId: string | null
product
product: { id: string; name: string; code: string; description: string | null; category: { id: string; name: string } | null; unitOfMeasure: { id: string; name: string; symbol: string } | null; billOfMaterials: BillOfMaterial[];} client
client:
| {
id: string;
name: string;
code: string;
email: string
| null;
phone: string | null;
}
| null
billOfMaterials
steps
routings
materials
progress
progress: number
isDelayed
isDelayed: boolean
scanInfo
scanInfo: {
scannedAt: string;
scannedBy: { id: string; name: string | null; email: string };
}
finishedProduct
finishedProduct: any
routing
routing: any
equipment
equipment: any
toolAssignments: any