fix: ignore currency validation while canceling the voucher

(cherry picked from commit 15d488b9aa)
This commit is contained in:
venkat102
2025-01-02 16:10:12 +05:30
committed by Mergify
parent 21a83c508a
commit 8874f4a9e4

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)