Use Combine shipments REPORT 295 for every shipment

robinho81robinho81 Member Posts: 48
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?

Comments

  • robinho81robinho81 Member Posts: 48
    Does anyone have an answer?

    thanks
  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from 'NAV 2009' forum to 'NAV/Navision' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.