Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loan restruc #180

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions lending/loan_management/doctype/loan_refund/loan_refund.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading