I am trying to post an invoice with Sales Tax in Spanish version of Business Central. The sales tax is getting calculated correctly on the Invoice but when I try to post it, it gives an error on the Tax Amount .
Tax Amount on Invoice = 1071.43 which is correct and on posting the system calculates it 1756.13 which is without Maximum Amount/Qty from Tax.
The sales tax amount for the TXA2409.8747 Tax Area Code and the STMB Tax Group Code is incorrect. The calculated sales tax amount is -1.756,13, but was supposed to be -1.071,43.
What I have figured it out so far is that, on posting the invoice the system is not considering the Maximum Amount/Qty of Tax and applying it on the full TaxBaseAmount
Tax Details