R33563 WarehouseOrder - Complete Parent Fulfillments
Name | Value |
---|---|
Code | R33563 |
Entity | Logistics.Wms.WarehouseOrders |
Name | CompleteParentFulfillments |
Attribute | - |
Layer | Back-End |
Events | Completed |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL // no condition needed |
Action | If WarehouseOrder.DocumentType.CompleteParentFulfillments == true, then execute the following steps: 1. Get the first Warehouse Order Line. If (TaskType != Dispatch OR Receive OR Kit OR Dekit) OR (ParentDocument == null) OR (ParentLineNo == null), then skip this line. Else, continue with step 2. 2. Find all Document Fulfillments, where DocumentFulfillment.DocumentLineId = current.WarehouseOrderLine.Id AND DocumentFulfillment.FulfillmentType = Completed 3. For each record found in step 2, create a coresponding Completed record for the parent document line, as follows: DocumentFulfillment.Document = WarehouseOrderLine.ParentDocument DocumentFulfillment.DocumentLineId = FIRST(WarehouseOrder.ParentDocument.ChildLines, where LineNo = WarehouseOrder.ParentLineNo).Id DocumentFulfillment.LineNo = WarehouseOrder.ParentLineNo DocumentFulfillment.FulfillmentType = Completed DocumentFulfillment.IsFinal = false DocumentFulfillment.LineType = the LineType of the DocumentFulfillment found in step 2 DocumentFulfillment.QuantityBase = the QuantityBase of the DocumentFulfillment found in step 2 DocumentFulfillment.Product = the Product of the DocumentFulfillment found in step 2 DocumentFulfillment.StandardQuantity = the StandardQuantity of the DocumentFulfillment found in step 2 DocumentFulfillment.SerialNumber = the SerialNumber of the DocumentFulfillment found in step 2 DocumentFulfillment.Lot = the Lot of the DocumentFulfillment found in step 2 DocumentFulfillment.ProductVariant = the ProductVariant of the DocumentFulfillment found in step 2 DocumentFulfillment.CreationUser = the current user DocumentFulfillment.DestinationEntityName = Wms_Warehouse_Order_Lines 5. Repeat step 1, 2 and 3 for all other (if any) Lines of the current document. |
Description | When document state is changed to Completed, the rules creates Completed document fulfillments the parent document lines. The rule is activated only for documents whoose document type has the 'Complete Parent Fulfillments' check-mark checked. |
Message | - |
Introduced In Version | Introduced: 2023 Updated: - |
Revocable | NO |