Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Problem when trying to print Original and copy of SalesInvoice toghether

$
0
0

I have this job in AX 2012 R3 CU12

private void PrintCopyAndOriginal()
{
        CustInvoiceJour     custInvoiceJourLocal;
        Args                args = new Args();
        ;
        select * from custInvoiceJourLocal
        where custInvoiceJourLocal.InvoiceId == 'INV000123';

        args.record(custInvoiceJourLocal);
        new MenuFunction(menuitemOutputStr(SalesInvoiceCopy), MenuItemType::Output).run(args);
        new MenuFunction(menuitemOutputStr(SalesInvoiceOriginal), MenuItemType::Output).run(args);
}

It seems that this code seriously messes up the report contracts, as parmDocumentTitle is set to "COPY" in both reports. Aditionally, one of the reports shows up without lines.

Please kindly test this code, and propose a Workaround.


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>