[Event Request] Table 7321 - OnValidate "Qty. to Ship"
In order to allow users to manually split shipment lines before picking is generated, I need to able to avoid the error check in this field trigger in that scenario. Please add an Event with Handled pattern and modify OnValidate as follows:
Qty. to Ship - OnValidate() GetLocation("Location Code"); //-NEW CODE OnBeforeCompareShipAndPickQties("Qty. to Ship","Qty. Picked","Qty. Shipped",IsHandled); If not IsHandled then //+NEW CODE IF ("Qty. to Ship" > "Qty. Picked" - "Qty. Shipped") AND Location."Require Pick" AND NOT "Assemble to Order" THEN FIELDERROR("Qty. to Ship", STRSUBSTNO(Text002,"Qty. Picked" - "Qty. Shipped"));
LOCAL [IntegrationEvent] OnBeforeCompareShipAndPickQties(QtyToShip : Decimal;QtyPicked : Decimal;QtyShipped : Decimal;VAR IsHandled : Boolean)