at the moment after Posting a Sales Order using option Post&Print -> Ship and Invoice. System prints Sales Shipment and Sales Invoice.
How can I change no to print Sales Shipment?
In code? Or it can be done with setup?
Thanks in advance
For us I simply commented out the line in CU82..since we NEVER use that report EVER. I didn't try it but what if you simply removed the report number from the report selections? below is where i commented out the code. I guess I could have added a field to the S&R setup table to turn it on & off easier! CASE "Document Type" OF "Document Type"::Order: BEGIN IF Ship THEN BEGIN SalesShptHeader."No." := "Last Shipping No."; SalesShptHeader.SETRECFILTER; //PrintReport(ReportSelection.Usage::"S.Shipment"); << I killed the command! END; IF Invoice THEN BEGIN SalesInvHeader."No." := "Last Posting No."; SalesInvHeader.SETRECFILTER; PrintReport(ReportSelection.Usage::"S.Invoice"); END; END;
In reply to Savatage:
SavatageI guess I could have added a field to the S&R setup table to turn it on & off easier!
This is a bug in Navision, been there as long as I can remember:
// ReportSelection.SETFILTER("Report ID",'<>0');ReportSelection.FIND('-');
That way you can put a blank report entry in the table to mean not print anything.
David Singleton - MVP Dynamics NAV
Dynamics NAV Consultant since 1991
Available for Navision system
In reply to David Singleton:
Thank you both.
where is that code ?
In reply to Kristaps: