ReportOrderBoundWork
Command, Introduced in version 2.26
POST https://localhost:8001/sv/001.1/api/v1/TimeRecording/RecordingDays/ReportOrderBoundWork
Reports operation time and optionally quantities for non-setup recordings. To handle bundling correctly use the /Many variant to start the full bundle at the same time.
Which existing started work interval to report on is determined with the combination of OperationId, BundleId and IsSetupTime.
Returns EntityCommandResponse
The root entity id of the response is the business key identifier of the RecordingDay that was updated. References RecordingDays
The entity id of the response is the business key identifier of the updated work interval. References WorkIntervals
The Data property of the response is populated with the resulting manufacturing label
generation data (CreateManufacturingTransportLabel[]) encoded as JSON.
Required permission
Record
Properties
| Name | Type | Summary | Introduced in |
|---|---|---|---|
| EmployeeId | Int64 | The business key identifier of the employee to create the recording for. References Persons.
|
|
| SigningEmployeeId | Int64? | The business key identifier of the signing employee if different from the reporting employee. Usually used for machine recording to indicate the operator. References Persons. |
|
| TimeStamp | DateTimeOffset? | Which time to record for, if unspecified the current server time will be used. Timestamp with a value greater than the server's current time is not allowed. |
|
| PutOnStandby | Boolean | Put work on standby after reporting. |
|
| BundleId | Guid | An identifier used to bundle work together. There must exist a matching started work with this bundle id.
|
|
| IsSetupTime | Boolean | Indicates if this was a setup-time recording. Must match with the started work. It is not possible to change the type of recording when reporting.
|
|
| OperationId | Int64 | The business key identifier of the operation to report. References ManufacturingOrderOperations.
|
|
| ReportedQuantity | Decimal | The quantity to report. Leave as zero to only report time. |
|
| WipLocation | String | Work in progress location (goods location) |
|
| ReportingWorkcenterId | Int64? | Used to specify reporting workcenter. If not specified, the operations workcenter will be used for the reporting. References WorkCenters |
|
| CancelRest | Boolean | Indicator if rest quantity should be canceled.
|
|
| Rejections | AddRejectionRow[] | The rejections to report. See also ReportManufacturingOrderOperation. |
|
| Locations | AddLocationRow[] | The new locations to create when reporting. See also ReportManufacturingOrderOperation.
|
|
| Comment | SetComment | Comment to link to the recording. |
Introduced in version 2.27 |
| ExistingLocations | ExistingLocationRow[] | The existing locations to report to.
|
Introduced in version 2.43 |
| StockLocations | StockLocation[] | The part locations to report to when reporting the last operation. Ignored for other operations. Each new location is created once, however many product records are reported to it. Cannot be combined with Locations or ExistingLocations. See also ReportManufacturingOrderOperation.
|
Introduced in version 26.8 |
| TraceabilityData | SetManufacturingOrderOperationReportingTraceabilityData[] | The traceability data to apply when reporting the operation.
|
Introduced in version 2.43 |
| ReturnTools | Boolean | Try to return reusable tools if the work center has the setting for it turned on. |
Introduced in version 23.8 |
| ExcludeTransportLabelInformation | Boolean? | Specifies if the EntityCommandResponse should contain CreateManufacturingTransportLabel[] data
|
Introduced in version 26.7 |
| ReportedRestQuantity | Decimal? | The rest quantity to report. Ignored when CancelRest is true. |
Introduced in version 26.9 |
| AutomaticMaterialWithdrawal | Boolean? | Specifies if material should be withdrawn automatically.
|
Introduced in version 26.9 |
| ReasonCodeTimeConsumptionId | Int64? | The business key identifier of the reason code time consumption (cause code for time loss or time gain) to set on the operation reporting. It is only used when the reporting finishes the operation and the time used deviates from the planned time by more than the system settings allow. The reason code must also be active and of the type that matches the deviation. Otherwise it is ignored. When it is used and the reason code requires a comment, Comment must be set. Ignored for setup time.
|
Introduced in version 26.9 |
Example
{
"EmployeeId": 0,
"SigningEmployeeId": null,
"TimeStamp": null,
"PutOnStandby": false,
"BundleId": "00000000-0000-0000-0000-000000000000",
"IsSetupTime": false,
"OperationId": 0,
"ReportedQuantity": 0.0,
"WipLocation": null,
"ReportingWorkcenterId": null,
"CancelRest": false,
"Rejections": null,
"Locations": null,
"Comment": null,
"ExistingLocations": null,
"StockLocations": null,
"TraceabilityData": null,
"ReturnTools": false,
"ExcludeTransportLabelInformation": null,
"ReportedRestQuantity": null,
"AutomaticMaterialWithdrawal": null,
"ReasonCodeTimeConsumptionId": null
}