diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py index 842b5a35b2a..b279ead5286 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py @@ -1219,6 +1219,8 @@ class SalesInvoice(SellingController): self.make_precision_loss_gl_entry(gl_entries) self.make_discount_gl_entries(gl_entries) + gl_entries = make_regional_gl_entries(gl_entries, self) + # merge gl entries before adding pos entries gl_entries = merge_similar_entries(gl_entries) @@ -2192,6 +2194,11 @@ def make_inter_company_purchase_invoice(source_name, target_doc=None): return make_inter_company_transaction("Sales Invoice", source_name, target_doc) +@erpnext.allow_regional +def make_regional_gl_entries(gl_entries, doc): + return gl_entries + + def make_inter_company_transaction(doctype, source_name, target_doc=None): if doctype in ["Sales Invoice", "Sales Order"]: source_doc = frappe.get_doc(doctype, source_name)