Merge pull request #48082 from aerele/get-party-account

fix:add validation for party type
This commit is contained in:
ruthra kumar
2025-06-17 13:54:59 +05:30
committed by GitHub

View File

@@ -424,6 +424,8 @@ def get_party_account(party_type, party=None, company=None, include_advance=Fals
Will first search in party (Customer / Supplier) record, if not found,
will search in group (Customer Group / Supplier Group),
finally will return default."""
if not party_type:
frappe.throw(_("Party Type is mandatory"))
if not company:
frappe.throw(_("Please select a Company"))