When posting an Sales invoice, is there any way we can get the Sales Shipment No. ? We have created a custom field in "Sales invoice header", "Shipment No.";
When a user posts a sales Order with "Ship and invoice" option, we want to save the shipment number in this new field. The problem is, I can't find an event where I have the Shipment No. available.
My idea was to use the OnBeforeSalesInvHeaderInsert Event in CU 80, but I don't have the Shipment No. here.
LOCAL [EventSubscriber] OnBeforeSalesInvHeaderInsert(VAR SalesInvHeader : Record "Sales Invoice Header";SalesHeader : Record "Sales Header";CommitIsSuppressed : Boolean)
Any ideas?