From 15d488b9aa97cf91aa7ac97b1870e4f5cd49acc8 Mon Sep 17 00:00:00 2001 From: venkat102 Date: Thu, 2 Jan 2025 16:10:12 +0530 Subject: [PATCH] fix: ignore currency validation while canceling the voucher --- erpnext/accounts/doctype/gl_entry/gl_entry.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/accounts/doctype/gl_entry/gl_entry.py b/erpnext/accounts/doctype/gl_entry/gl_entry.py index d9d7807a561..c77a201ab51 100644 --- a/erpnext/accounts/doctype/gl_entry/gl_entry.py +++ b/erpnext/accounts/doctype/gl_entry/gl_entry.py @@ -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)