- Code: Select all
Public Sub CloseOrder()
OnClosing()
For Each Line As Line In Lines
If Line.Delivered < Line.Quantity Then
Line.Quantity = Line.Delivered
End If
Next Line
_OrderStatus = JiwaApplication.Entities.PurchaseOrder.Workflow.Status.Closed
Save()
OnClosed()
End Sub
As you can see, it is quite explicit and the behaviour does not alter based on warehouse.

