fix: ignore currency validation while canceling the voucher

This commit is contained in:
venkat102
2025-01-02 16:10:12 +05:30
parent 54cb99eae3
commit 15d488b9aa

View File

@@ -275,6 +275,9 @@ class GLEntry(Document):
validate_account_party_type(self)
def validate_currency(self):
if self.is_cancelled:
return
company_currency = erpnext.get_company_currency(self.company)
account_currency = get_account_currency(self.account)