fix: credit note receive payment entry

This commit is contained in:
Gursheen Anand
2023-11-03 11:58:25 +05:30
parent cd1e016163
commit 4015723591
2 changed files with 21 additions and 2 deletions

View File

@@ -2041,3 +2041,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_list("Party Type", {"account_type": account_type}, pluck="name")