Recoverable Standard Rated Expense" field not auto-populating on Purchase Invoice (UAE VAT)

Environment:

  • ERPNext version: 16.3.21

  • Frappe Framework version: 16.3.21

  • Company Country: United Arab Emirates

  • UAE VAT Settings: correctly configured (VAT 5% - HAAAL account 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:

  1. Create a Purchase Invoice

  2. Apply the “UAE VAT 5%” Purchase Taxes and Charges Template (Account Head: VAT 5% - HAAAL)

  3. Submit the invoice

  4. 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 :white_check_mark:

  • Credit To (Purchase Invoice) = Accounts Payable :white_check_mark:

  • Tax account in template exactly matches UAE VAT Settings entry :white_check_mark:

Hi @Razaazad

Are you using the UAE compliance app?

If yes better raise github issue with them GitHub - ERPGulf/uae_erpgulf: E-Invoicing for UAE , for EPRNext , by ERPGulf · GitHub

Best of luck