Przejdź do głównej zawartości

ProductionProgress

Dla: Programista

Typ obiektowyProductionProgress

How far production of an element, a product or an order has got: the roll-up of all its operations. Computed when read from the operations and their tasks, so it moves with Order.updatedAt.

Pola

PoleTypOpis
completedOperationCountInt!

How many of the operations are completed (Operation.productionStatus COMPLETED).

operationCountInt!

How many operations there are (0 when there are none yet).

percentFloat!

Share of the work done, 0 to 100 (one decimal place); 100 only when status is COMPLETED. Each operation counts by its quantity done, weighted by its planned machine time; an operation without a time estimate weighs as much as the average estimated one, and when none has an estimate, every operation weighs the same.

plannedSecondsInt!

Planned machine time of the operations, in seconds: the sum of timePerUnitSeconds * quantity (operations without a time estimate add nothing). An estimate of the print shop, not time measured on the shop floor.

remainingSecondsInt!

Planned machine time of the work still to do, in seconds (0 once production is completed): plannedSeconds less the part already done. Operations without a time estimate add nothing, so it may be 0 before production is completed.

statusProductionStatus!

Where production stands across the operations: COMPLETED when every one is; IN_PROGRESS while a task runs, or while some operations are completed and the others wait their turn; PAUSED when an operation is interrupted part-way (a paused task, a part of its quantity) and none runs; NOT_STARTED while none has started (or there are none).

Używane w