MS Dynamics AX / AXAPTA - 防止重新打印未过帐支票付款通知书的代码在哪里?
我们希望在发布付款通知之前重新打印付款通知。 那个报告 BankPaymAdviceCheque 应该能够做到这一点,但只打印建议 已经寄出支票。 但是,报告的对话框允许您选择 还有未发布的。
无论我如何在代码中查找,都找不到 防止未过帐汇款被重新打印的位 -
帮助将不胜感激?
We want to reprint a payment advice, even before it is posted. The report
BankPaymAdviceCheque should be able to do this but only prints advices for
already posted cheques. The report's dialog, however, allows you to choose
unposted ones as well.
No matter how I searched in the code, I cannot find
the bit that prevents unposted remittances from being re-printed -
Help would be greatly appreciated?
逻辑位于 vendTransInvoice 方法中。 当针对已打印和过帐的支票运行报告时,vendOutPaymCheque 将为 null,因此会运行在 vendTrans 和 vendSettlement 中查找记录的代码块。 当报表在支票打印期间运行时,vendOutPaymCheque 不为空,因此会运行在specTrans 中查找记录的代码块。 当调用报表来获取已打印但未过账的支票时,此代码会错误地查找 vendTrans 和 vendSettlement 中的记录,并且找不到任何数据,因为日记帐尚未过账。
The logic is in the vendTransInvoice method. When the report is run for a check that has already printed and posted, vendOutPaymCheque will be null, so the block of code that looks up records in vendTrans and vendSettlement gets run. When the report is run during the printing of a check, vendOutPaymCheque isn't null, so the block of code that looks up records in specTrans gets run. When the report is called for a check that has printed but not posted, this code is incorrectly looking up records in vendTrans and vendSettlement and not finding any data because the journal hasn't posted yet.