Freigeben über


Rounding concerns using Breakdown of Voucher in AX 4.0 SP2

Problem:

When you enter an AP invoice with multiple line items and choose Breakdown of voucher to split the posting into several lines the amount of lines which have not been selected can be changed.

Resolution:

Make the following changes to \Classes\LedgerJournalSplitPosting\updateLedgerJournal

From:

...

    AmountCur            amountToAllocate;
    AmountCur            highestAmountCur = -1;
    RecID                ledgerJournalTransRecID;

...

and

...

  while select tmpLedgerJournalSplitHeader
        {
            totalAmountCur = 0;
            while select tmpLedgerJournalSplitLines

...

 

To:

...

    AmountCur            amountToAllocate;
    AmountCur            highestAmountCur;
    RecID                ledgerJournalTransRecID;

...

...

        while select tmpLedgerJournalSplitHeader
        {
            totalAmountCur = 0;
            highestAmountCur =0;
            while select tmpLedgerJournalSplitLines

...