Update erpnext/regional/saudi_arabia/utils.py

Co-authored-by: Saqib Ansari <nextchamp.saqib@gmail.com>
This commit is contained in:
Deepesh Garg 2022-03-14 18:35:49 +05:30 committed by GitHub
parent 1faca0eb5a
commit e33d4713cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ def get_vat_amount(doc):
vat_amount = 0
if vat_settings:
vat_settings_doc = frappe.get_doc('KSA VAT Setting', vat_settings)
vat_settings_doc = frappe.get_cached_doc('KSA VAT Setting', vat_settings)
for row in vat_settings_doc.get('ksa_vat_sales_accounts'):
vat_accounts.append(row.account)