mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
fix: Update RCM only for indian countries
This commit is contained in:
@@ -653,6 +653,11 @@ def get_gst_accounts(company, account_wise=False):
|
|||||||
return gst_accounts
|
return gst_accounts
|
||||||
|
|
||||||
def update_grand_total_for_rcm(doc, method):
|
def update_grand_total_for_rcm(doc, method):
|
||||||
|
country = frappe.get_cached_value('Company', doc.company, 'country')
|
||||||
|
|
||||||
|
if country != 'India':
|
||||||
|
return
|
||||||
|
|
||||||
if doc.reverse_charge == 'Y':
|
if doc.reverse_charge == 'Y':
|
||||||
gst_accounts = get_gst_accounts(doc.company)
|
gst_accounts = get_gst_accounts(doc.company)
|
||||||
gst_account_list = gst_accounts.get('cgst_account') + gst_accounts.get('sgst_account') \
|
gst_account_list = gst_accounts.get('cgst_account') + gst_accounts.get('sgst_account') \
|
||||||
|
|||||||
Reference in New Issue
Block a user