Skip to content

Commit

Permalink
fix: set liability account for all party types
Browse files Browse the repository at this point in the history
  • Loading branch information
GursheenK committed Jan 30, 2024
1 parent 0f0edc1 commit cd74100
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions erpnext/accounts/party.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,7 @@ def get_party_and_advance_accounts(party_type, party=None, company=None):
Returns a list containing the party account and the advance account.
"""
party_accounts = [get_party_account(party_type, party, company)]
if party and party_type in ["Customer", "Supplier"]:
party_accounts.append(get_party_advance_account(party_type, party, company))
party_accounts.append(get_party_advance_account(party_type, party, company))
return party_accounts


Expand Down

0 comments on commit cd74100

Please sign in to comment.