Tax Amount not included in Journal

I’m trying to create journal with Tax Amount, But I unable to see the tax amount in Journal. its shows only Taxable amount.

It should show Taxable amount + Tax Amount.

I’m trying to create Purchase invoice journal using x++

ledgerJournalEngine.correctTaxAmount(_ledgerJournalTrans, _taxAmount);

Is there any setup required to add the tax amount in Journal ?

I’m using AX 2009

Why do you need this call? Does assigning tax groups during journal lines creation is not calculating the tax?

Yes, journal line creation not calculating the tax .

If possible, please show us your code to create journal lines