diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 237f19274e3..d38fbb0a0db 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -1151,6 +1151,8 @@ class AccountsController(TransactionBase): with temporary_flag("company", self.company): update_gl_dict_with_regional_fields(self, gl_dict) + update_gl_dict_with_app_based_fields(self, gl_dict) + accounting_dimensions = get_accounting_dimensions() dimension_dict = frappe._dict() @@ -3937,3 +3939,7 @@ def validate_einvoice_fields(doc): @erpnext.allow_regional def update_gl_dict_with_regional_fields(doc, gl_dict): pass + +def update_gl_dict_with_app_based_fields(doc, gl_dict): + for method in frappe.get_hooks("update_gl_dict_with_app_based_fields", default=[]): + frappe.get_attr(method)(doc, gl_dict) \ No newline at end of file