Environment:
-
ERPNext version: 16.3.21
-
Frappe Framework version: 16.3.21
-
Company Country: United Arab Emirates
-
UAE VAT Settings: correctly configured (
VAT 5% - HAAALaccount registered under UAE VAT Accounts) -
Purchase Taxes and Charges Template: “UAE VAT 5%” — Account Head =
VAT 5% - HAAAL(exact match with UAE VAT Settings)
Steps to reproduce:
-
Create a Purchase Invoice
-
Apply the “UAE VAT 5%” Purchase Taxes and Charges Template (Account Head:
VAT 5% - HAAAL) -
Submit the invoice
-
Check the “Recoverable Standard Rated Expense” field on the Purchase Invoice
Expected behavior:
The field should auto-populate with the recoverable VAT amount based on the applied tax row, as it previously did before upgrading to v16.
Actual behavior:
The field remains blank/zero and requires manual entry. This directly affects the accuracy of the UAE VAT 201 report, Box 9 (Recoverable Standard Rated Expenses), since the report relies on this field being correctly populated.
Additional context:
This started after upgrading to ERPNext v16. I also noticed the v16.19.0 changelog tightened UAE VAT 201 report validation (restricting it to companies with Country = United Arab Emirates, with an explicit error for others) — flagging this in case the same code area is related to this regression.
Configuration already verified as correct:
-
Company → Country = United Arab Emirates

-
Credit To (Purchase Invoice) = Accounts Payable

-
Tax account in template exactly matches UAE VAT Settings entry
