diff --git a/lending/install.py b/lending/install.py index f9d23b20..0e627d2f 100644 --- a/lending/install.py +++ b/lending/install.py @@ -52,10 +52,17 @@ "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", - "insert_after": "min_days_bw_disbursement_first_repayment", + "insert_after": "begin_interest_accrual_from", }, { "fieldname": "collection_offset_logic_based_on", diff --git a/lending/patches.txt b/lending/patches.txt index e20037fa..73a9d913 100644 --- a/lending/patches.txt +++ b/lending/patches.txt @@ -9,7 +9,7 @@ lending.patches.v15_0.rename_loan_type_to_loan_product [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()