Total Taxes and Charges (AED)as well as the
Amountcolumn of the Tax table must be
AED 160. There are multiple VAT options configured. Of them,
5%is the one that is not calculated. There is another VAT set at
50%which works fine.
This happened after customising the
Sales Invoice DocTypes.