Sales tax information is not recaculated if document date is changed in a journal when sales tax is calculated using document date
Problem:
When setting the General ledger parameter for Calculation Date Type = Document date sales tax information is not refreshed on journal forms when the document date is changed. Posted values are correct, however the display in the journal is not refreshed.
Resolution:
To resolve this issue the following code changes can be made.
Change \Classes\LedgerJournalEngine\documentDateModified
From:
...
if (ledgerJournalTrans.CashDiscCode)
{
this.calculateCashDisc(ledgerJournalTrans);
}
}
To:
...
if (ledgerJournalTrans.CashDiscCode)
{
this.calculateCashDisc(ledgerJournalTrans);
}
if (TaxParameters::find().TaxCalculationDateType == TaxCalculationDateType::DocumentDate)
{
this.clearTaxAmountCache(ledgerJournalTrans);
}
}