fix: Party for loan ledger entries
This commit is contained in:
parent
dd94587ef8
commit
d53abf194e
16
erpnext/loan_management/doctype/loan/loan_list.js
Normal file
16
erpnext/loan_management/doctype/loan/loan_list.js
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
// License: GNU General Public License v3. See license.txt
|
||||
|
||||
frappe.listview_settings['Loan'] = {
|
||||
get_indicator: function(doc) {
|
||||
var status_color = {
|
||||
"Draft": "red",
|
||||
"Sanctioned": "blue",
|
||||
"Disbursed": "orange",
|
||||
"Partially Disbursed": "yellow",
|
||||
"Loan Closure Requested": "green",
|
||||
"Closed": "green"
|
||||
};
|
||||
return [__(doc.status), status_color[doc.status], "status,=,"+doc.status];
|
||||
},
|
||||
};
|
@ -141,8 +141,6 @@ class LoanDisbursement(AccountsController):
|
||||
"against_voucher": self.against_loan,
|
||||
"remarks": _("Disbursement against loan:") + self.against_loan,
|
||||
"cost_center": self.cost_center,
|
||||
"party_type": self.applicant_type,
|
||||
"party": self.applicant,
|
||||
"posting_date": self.disbursement_date
|
||||
})
|
||||
)
|
||||
|
@ -62,8 +62,6 @@ class LoanInterestAccrual(AccountsController):
|
||||
gle_map.append(
|
||||
self.get_gl_dict({
|
||||
"account": self.interest_income_account,
|
||||
"party_type": self.applicant_type,
|
||||
"party": self.applicant,
|
||||
"against": self.loan_account,
|
||||
"credit": self.interest_amount,
|
||||
"credit_in_account_currency": self.interest_amount,
|
||||
|
@ -234,8 +234,6 @@ class LoanRepayment(AccountsController):
|
||||
"against_voucher": self.against_loan,
|
||||
"remarks": _("Repayment against loan:") + self.against_loan,
|
||||
"cost_center": self.cost_center,
|
||||
"party_type": self.applicant_type,
|
||||
"party": self.applicant,
|
||||
"posting_date": getdate(self.posting_date)
|
||||
})
|
||||
)
|
||||
@ -251,8 +249,6 @@ class LoanRepayment(AccountsController):
|
||||
"against_voucher": self.against_loan,
|
||||
"remarks": _("Against Loan:") + self.against_loan,
|
||||
"cost_center": self.cost_center,
|
||||
"party_type": self.applicant_type,
|
||||
"party": self.applicant,
|
||||
"posting_date": getdate(self.posting_date)
|
||||
})
|
||||
)
|
||||
|
@ -63,8 +63,6 @@ class LoanWriteOff(AccountsController):
|
||||
"against_voucher": self.loan,
|
||||
"remarks": _("Against Loan:") + self.loan,
|
||||
"cost_center": self.cost_center,
|
||||
"party_type": self.applicant_type,
|
||||
"party": self.applicant,
|
||||
"posting_date": getdate(self.posting_date)
|
||||
})
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user