Skip to content

Commit

Permalink
fix: set party type & party for gratuity payable row in journal entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal committed Jan 13, 2025
1 parent 62de9a3 commit 5f70a97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def create_journal_entry(self):
"debit_in_account_currency": flt(data.amount, precision),
"user_remark": data.remark,
}
if data.reference_document_type == "Expense Claim":
if data.reference_document_type in ["Expense Claim", "Gratuity"]:
account_dict["party_type"] = "Employee"
account_dict["party"] = self.employee

Expand Down

0 comments on commit 5f70a97

Please sign in to comment.