Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Print Check copies while generating payments AX 2012

Posted on by 1,272

Hello Everyone,

I have a requirement where I need to print the check copies along with the actual checks when I generate payments from the payment journal. Is there anyway we can modify the controller class and make it to print both the original and copy reports at the same time?

Thanks

  • Verified answer
    dynamics developer Profile Picture
    dynamics developer 1,272 on at
    RE: Print Check copies while generating payments AX 2012
    
    

    OK, I figured it out myself. I called the PrintCheque method of the BankChequeCopy Class after the start operation method and passed the args after modifying it from the current arguments.

    here is what I did

    .
    .
    .
    controller.startOperation();
    
    
    if(controller.parmArgs().caller() is BankChequePrint)
        {
    
            _bankChequePrint = controller.parmArgs().caller();
            if(!_bankChequePrint.parmTmpChequePrintout().Copy)
            {
                _chequeTable=_bankChequePrint.parmTmpChequePrintout();
    
                select forUpdate _chequeTable;
                ttsBegin;
                _chequeTable.Copy=NoYes::Yes;
                _chequeTable.update();
                ttsCommit;
    
                copyCheque = new BankChequeCopy();
                copyCheque.printCheque(_chequeTable);
            }

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,663 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,750 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans