commit | 40157235916578ae88d2ec9a85f481c92fec9278 | [log] [tgz] |
---|---|---|
author | Gursheen Anand <gursheen@frappe.io> | Fri Nov 03 11:58:25 2023 +0530 |
committer | Gursheen Anand <gursheen@frappe.io> | Fri Nov 03 11:58:25 2023 +0530 |
tree | 9f0e0cc5b57e8e8d52d2057fa0afe8cf53dd261c | |
parent | cd1e016163141a4851b9128a2ff008809942482e [diff] [blame] |
fix: credit note receive payment entry
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 1c7052f..0a116a7 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py
@@ -2041,3 +2041,7 @@ journal_entry.save() journal_entry.submit() return journal_entry.name + + +def get_party_types_from_account_type(account_type): + return frappe.db.get_list("Party Type", {"account_type": account_type}, pluck="name")