mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 09:47:14 +00:00
fix: Update party type for payroll payable account
This commit is contained in:
@@ -405,6 +405,16 @@ class LoanRepayment(AccountsController):
|
|||||||
else:
|
else:
|
||||||
payment_account = self.payment_account
|
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:
|
if self.total_penalty_paid:
|
||||||
gle_map.append(
|
gle_map.append(
|
||||||
self.get_gl_dict(
|
self.get_gl_dict(
|
||||||
@@ -452,6 +462,8 @@ class LoanRepayment(AccountsController):
|
|||||||
"remarks": _(remarks),
|
"remarks": _(remarks),
|
||||||
"cost_center": self.cost_center,
|
"cost_center": self.cost_center,
|
||||||
"posting_date": getdate(self.posting_date),
|
"posting_date": getdate(self.posting_date),
|
||||||
|
"party_type": payment_party_type,
|
||||||
|
"party": payment_party,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user