From 40da42c80f77b03d8e90aafc567b008cc8a4f25f Mon Sep 17 00:00:00 2001 From: Nihantra Patel Date: Tue, 22 Oct 2024 12:14:59 +0530 Subject: [PATCH] fix: loan refund gl entry --- lending/loan_management/doctype/loan_refund/loan_refund.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lending/loan_management/doctype/loan_refund/loan_refund.py b/lending/loan_management/doctype/loan_refund/loan_refund.py index d42672d5..54d28f3e 100644 --- a/lending/loan_management/doctype/loan_refund/loan_refund.py +++ b/lending/loan_management/doctype/loan_refund/loan_refund.py @@ -119,8 +119,8 @@ def make_gl_entries(self, cancel=0): "remarks": _("Against Loan:") + self.loan, "cost_center": self.cost_center, "posting_date": getdate(self.posting_date), - "party_type": loan_details.applicant_type, - "party": loan_details.applicant, + "party_type": self.applicant_type, + "party": self.applicant, } ) )