Hello,
How can I change the original report to our own situation that we want a invoice for every shipment by using the combine shipments.
I've already copied these lines from SalesShipmentLine - OnAfterGetRecord to SalesShipmentLine - OnPreDataItem:
InsertSalesInvHeader;
SalesLine.SETRANGE("Document Type",SalesHeader."Document Type");
SalesLine.SETRANGE("Document No.",SalesHeader."No.");
SalesLine."Document Type" := SalesHeader."Document Type";
SalesLine."Document No." := SalesHeader."No.";
This way for every shipment there is a new invoice created. But this also creates empty invoices filled with customer information without shipping lines.... How are the empty ones skipped?
And is it also possible using this method to print the shipmentnumber on the sales invoice header instead of the first position in the lines?
0
Comments
thanks
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!