Merge pull request #37828 from GursheenK/payments-irrespective-of-party-types

fix: payments irrespective of party types
This commit is contained in:
Deepesh Garg
2023-11-09 12:14:58 +05:30
committed by GitHub
6 changed files with 63 additions and 56 deletions

View File

@@ -2046,3 +2046,7 @@ def create_gain_loss_journal(
journal_entry.save()
journal_entry.submit()
return journal_entry.name
def get_party_types_from_account_type(account_type):
return frappe.db.get_all("Party Type", {"account_type": account_type}, pluck="name")