Monday, April 6, 2015

Axapta retrieve the Sales Tax amount on Sales order/Purchase order

Axapta will store the sales tax amount on a temporary table before invoice the SO/PO. Hence we can direct retrieve the tax amount from table.

However, we would like to get the tax amount before invoice for adjustment or validations purpose. Hence below standard code can help us to overcome the temp table problem.

Ax2.5 - Ax2009 :-

TaxLedgerJournalCalculate::totalTaxAmountSingleLine(TaxJournalCall::Journal, _ledgerJournalTrans, 0, 0);  


Ax2012 :-

LedgerJournalEngine.taxAmountJournal(_ledgerJournalTrans);