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
*This post is locked for comments
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); }
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,900 Super User 2024 Season 2
Martin Dráb 229,275 Most Valuable Professional
nmaenpaa 101,156