refactor: validation to force accounts to be on same currency

(cherry picked from commit 0f0b4d88bc)
This commit is contained in:
ruthra kumar
2024-05-29 11:26:10 +05:30
committed by Mergify
parent 88e1c28e7d
commit 78ad3f6cdc
3 changed files with 59 additions and 0 deletions

View File

@@ -144,6 +144,7 @@ class Customer(TransactionBase):
self.validate_default_bank_account()
self.validate_internal_customer()
self.add_role_for_user()
self.validate_currency_for_receivable_payable_and_advance_account()
# set loyalty program tier
if frappe.db.exists("Customer", self.name):