From 58bc91cdc5b624c762f410f515e7108618aea765 Mon Sep 17 00:00:00 2001 From: Abhishek8848 Date: Tue, 2 Apr 2024 18:35:16 +0530 Subject: [PATCH 1/2] Added fields in Loan refund --- .../doctype/loan_refund/loan_refund.json | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/lending/loan_management/doctype/loan_refund/loan_refund.json b/lending/loan_management/doctype/loan_refund/loan_refund.json index f78e55e9..d3e63cc2 100644 --- a/lending/loan_management/doctype/loan_refund/loan_refund.json +++ b/lending/loan_management/doctype/loan_refund/loan_refund.json @@ -16,10 +16,14 @@ "cost_center", "section_break_9", "refund_account", + "type_of_refund", + "initiator", + "verification", "column_break_11", "refund_amount", "reference_number", - "amended_from" + "amended_from", + "stage" ], "fields": [ { @@ -126,12 +130,32 @@ "fieldname": "reference_number", "fieldtype": "Data", "label": "Reference Number" + }, + { + "fieldname": "type_of_refund", + "fieldtype": "Data", + "label": "Type of Refund" + }, + { + "fieldname": "initiator", + "fieldtype": "Data", + "label": "Initiator" + }, + { + "fieldname": "verification", + "fieldtype": "Data", + "label": "Verification" + }, + { + "fieldname": "stage", + "fieldtype": "Data", + "label": "Stage" } ], "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2022-06-24 16:13:48.793486", + "modified": "2024-04-02 18:33:03.488070", "modified_by": "Administrator", "module": "Loan Management", "name": "Loan Refund", From 2b7ab89ebfab43e7539d48f8fb2d02c015e167d5 Mon Sep 17 00:00:00 2001 From: Abhishek8848 Date: Fri, 3 May 2024 14:25:12 +0530 Subject: [PATCH 2/2] Fixed: Loan Restructure Saving document --- .../loan_management/doctype/loan_repayment/loan_repayment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lending/loan_management/doctype/loan_repayment/loan_repayment.py b/lending/loan_management/doctype/loan_repayment/loan_repayment.py index 128c4682..e8128c8f 100644 --- a/lending/loan_management/doctype/loan_repayment/loan_repayment.py +++ b/lending/loan_management/doctype/loan_repayment/loan_repayment.py @@ -133,9 +133,9 @@ def process_reschedule(self): reverse_loan_interest_accruals(self.against_loan, self.posting_date) loan_restructure = frappe.get_doc("Loan Restructure", {"loan_repayment": self.name}) loan_restructure.flags.ignore_links = True - loan_restructure.submit() loan_restructure.status = "Approved" loan_restructure.save() + loan_restructure.submit() def set_repayment_account(self): if not self.payment_account and self.mode_of_payment: