Hi, If I print a invoice from Invoice Journal>Document>Send>Copy, debug shows the correct CustInvoiceJour RecId and the correct InvoiceId.
If I print the same invoice from Invoice Journal>Document>View>Use Print Management (or Copy Preview), debug shows the correct CustInvoiceJour RecId and the wrong InvoiceId.
Why?
Print Management settings for Documents>Customer Invoice.
Hi, Judging from the description, it seems that there are some problems with the print management settings. View options allow you to view and configure print management settings before actually generating or sending the document. The send option is used to generate and distribute the document immediately, and the system will automatically apply the predefined print management settings. I have set up the form in the system but cannot reproduce your problem. You can try to check the code or processing logic that triggers printing in Invoice Journal and Invoice Journal to see if there are any differences.Or you can also take a look at the relevant documentation on print management. https://dynamics-tips.com/print-management/ Best Regards, Hana