From 5f70a97078a6d75b28def8ea88c3e7008e3ed1e0 Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Mon, 13 Jan 2025 11:55:12 +0530 Subject: [PATCH] fix: set party type & party for gratuity payable row in journal entry --- .../full_and_final_statement/full_and_final_statement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrms/hr/doctype/full_and_final_statement/full_and_final_statement.py b/hrms/hr/doctype/full_and_final_statement/full_and_final_statement.py index a940050c20..abf0889684 100644 --- a/hrms/hr/doctype/full_and_final_statement/full_and_final_statement.py +++ b/hrms/hr/doctype/full_and_final_statement/full_and_final_statement.py @@ -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