Since version 19.7.704.0 it is possible to adjust the automatic calculation of Qty. to Send on source documents.
In the ShipIT solution the Qty. to Send on source documents is automatically determined as the “Qty. to ship” – “Qty. Sent” on existing transport orders.

Also over shipping is not allowed by default, resulting into an error message “Qty. to Send cannot exceed Quantity(Base).
We have now added a set of events that allows a customized calculation of Qty. to Send and it is also possible to replace the checks/errors for over shipping.

For this purpose the following events have been added:
To replace the checks on over shipping:

Table Name Event Name Parameters
Sales Line IDYSOnBeforeQtyToSendError SalesLine: Record “Sales Line”; var IsHandled: Boolean
Service Line IDYSOnBeforeQtyToSendError Service Line: Record “Service Line”; var IsHandled: Boolean
Purchase Line IDYSOnBeforeQtyToSendError PurchaseLine: Record “Purchase Line”; var IsHandled: Boolean
Transfer Line IDYSOnBeforeQtyToSendError TransferLine: Record “Transfer Line”; var IsHandled: Boolean
Warehouse Shipment Line IDYSOnBeforeQtyToSendError WarehouseShipmentLine: Record “Warehouse Shipment Line”; var IsHandled: Boolean
Sales Shipment Line IDYSOnBeforeQtyToSendError SalesShipmentLine: Record “Sales Shipment Line”; var IsHandled: Boolean
Service Shipment Line IDYSOnBeforeQtyToSendError ServiceShipmentLine: Record “Service Shipment Line”; var IsHandled: Boolean
Return Shipment Line IDYSOnBeforeQtyToSendError ReturnShipmentLine: Record “Return Shipment Line”; var IsHandled: Boolean
Return Receipt Line IDYSOnBeforeQtyToSendError ReturnReceiptLine: Record “Return Receipt Line”; var IsHandled: Boolean
Transfer Shipment Line IDYSOnBeforeQtyToSendError TransferShipmentLine: Record “TransferShipment Line”; var IsHandled: Boolean

(Set IsHandled to true to skip the executing of the standard ShipIT check)

To customize the calculation of Qty. to Send:

Publisher Type Publisher ID Publisher Name
Codeunit 11147649 IDYS Document Mgt.
Table Name Event Name Parameters
Sales Line OnBeforeSalesLineCheckQtyToSend var SalesLine: Record “Sales Line”; QtoToSend: Decimal; var IsHandled: Boolean
Service Line OnBeforeServiceLineCheckQtyToSend var Service Line: Record “Service Line”; QtoToSend: Decimal; var IsHandled: Boolean
Purchase Line OnBeforePurchaseLineCheckQtyToSend var PurchaseLine: Record “Purchase Line”; QtoToSend: Decimal; var IsHandled: Boolean
Transfer Line OnBeforeTransferLineCheckQtyToSend var TransferLine: Record “Transfer Line”; QtoToSend: Decimal; var IsHandled: Boolean
Warehouse Shipment Line OnBeforeWhseShipmentLineCheckQtyToSend var WarehouseShipmentLine: Record “Warehouse Shipment Line”; SourceDocQty: Decimal; QtoToSend: Decimal; var IsHandled: Boolean

(Validate Qty. to Send in these events and Set IsHandled to true to skip the standard ShipIT validation)
The following code is not executed when IsHandled is set:

Need more help with this?
Support Portal

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.