fix: ignore party account validation while canceling the voucher

This commit is contained in:
venkat102
2025-01-02 17:27:34 +05:30
parent 15d488b9aa
commit 49885f8eae

View File

@@ -765,6 +765,9 @@ def validate_party_frozen_disabled(party_type, party_name):
def validate_account_party_type(self):
if self.is_cancelled:
return
if self.party_type and self.party:
account_type = frappe.get_cached_value("Account", self.account, "account_type")
if account_type and (account_type not in ["Receivable", "Payable"]):