mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 21:49:18 +00:00
Update erpnext/regional/saudi_arabia/utils.py
Co-authored-by: Saqib Ansari <nextchamp.saqib@gmail.com>
(cherry picked from commit e33d4713cd)
This commit is contained in:
committed by
mergify-bot
parent
c5de90320f
commit
ec92551f7c
@@ -136,7 +136,7 @@ def get_vat_amount(doc):
|
|||||||
vat_amount = 0
|
vat_amount = 0
|
||||||
|
|
||||||
if vat_settings:
|
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'):
|
for row in vat_settings_doc.get('ksa_vat_sales_accounts'):
|
||||||
vat_accounts.append(row.account)
|
vat_accounts.append(row.account)
|
||||||
|
|||||||
Reference in New Issue
Block a user