mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-10 13:57:19 +00:00
fix: ignore currency validation while canceling the voucher
(cherry picked from commit 15d488b9aa)
This commit is contained in:
@@ -275,6 +275,9 @@ class GLEntry(Document):
|
|||||||
validate_account_party_type(self)
|
validate_account_party_type(self)
|
||||||
|
|
||||||
def validate_currency(self):
|
def validate_currency(self):
|
||||||
|
if self.is_cancelled:
|
||||||
|
return
|
||||||
|
|
||||||
company_currency = erpnext.get_company_currency(self.company)
|
company_currency = erpnext.get_company_currency(self.company)
|
||||||
account_currency = get_account_currency(self.account)
|
account_currency = get_account_currency(self.account)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user