mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-07 04:24:13 +00:00
fix: Update party type for payroll payable account
This commit is contained in:
@@ -405,6 +405,16 @@ class LoanRepayment(AccountsController):
|
||||
else:
|
||||
payment_account = self.payment_account
|
||||
|
||||
payment_party_type = ""
|
||||
payment_party = ""
|
||||
|
||||
if (
|
||||
hasattr(self, "process_payroll_accounting_entry_based_on_employee")
|
||||
and self.process_payroll_accounting_entry_based_on_employee
|
||||
):
|
||||
payment_party_type = "Employee"
|
||||
payment_party = self.applicant
|
||||
|
||||
if self.total_penalty_paid:
|
||||
gle_map.append(
|
||||
self.get_gl_dict(
|
||||
@@ -452,6 +462,8 @@ class LoanRepayment(AccountsController):
|
||||
"remarks": _(remarks),
|
||||
"cost_center": self.cost_center,
|
||||
"posting_date": getdate(self.posting_date),
|
||||
"party_type": payment_party_type,
|
||||
"party": payment_party,
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user