From 7a2790849f8f67e411ac9adcd8aca9dff0df933d Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Thu, 26 Oct 2023 17:02:53 +0530 Subject: [PATCH] feat: Setting to determine disbursement start (cherry picked from commit 609609b55f4c6a7fd7b79d9f9623b9ece0589bd6) --- lending/install.py | 7 +++++++ lending/patches.txt | 2 +- lending/patches/v15_0/create_custom_fields.py | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lending/install.py b/lending/install.py index 5b941e6c..e2799dad 100644 --- a/lending/install.py +++ b/lending/install.py @@ -52,6 +52,13 @@ "insert_after": "interest_day_count_convention", "non_negative": 1, }, + { + "fieldname": "Begin Interest Accrual From", + "label": "begin_interest_accrual_from", + "fieldtype": "Select", + "options": "Disbursement Initiated\nPayment Debited From Bank", + "insert_after": "min_days_bw_disbursement_first_repayment", + }, { "fieldname": "loan_column_break", "fieldtype": "Column Break", diff --git a/lending/patches.txt b/lending/patches.txt index adc49f67..ea109481 100644 --- a/lending/patches.txt +++ b/lending/patches.txt @@ -11,7 +11,7 @@ execute:frappe.rename_doc("DocType", "Loan Security Unpledge", "Loan Security Re [post_model_sync] # Patches added in this section will be executed after doctypes are migrated lending.patches.v15_0.update_loan_types -lending.patches.v15_0.create_custom_fields #9 +lending.patches.v15_0.create_custom_fields #10 lending.patches.v15_0.create_custom_field_for_irac_provisioning_configuration lending.patches.v15_0.update_loan_asset_classification_ranges lending.patches.v15_0.generate_loan_classifications_from_loan_asset_classification_ranges diff --git a/lending/patches/v15_0/create_custom_fields.py b/lending/patches/v15_0/create_custom_fields.py index 0d5064af..c1cbdbb7 100644 --- a/lending/patches/v15_0/create_custom_fields.py +++ b/lending/patches/v15_0/create_custom_fields.py @@ -1,5 +1,5 @@ -from lending.install import after_install +from lending.install import create_custom_fields def execute(): - after_install() + create_custom_fields()