Skip to content

Commit

Permalink
fix: patch due dates in loan interest accruals (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed May 10, 2024
1 parent 0bd233a commit 3f2cbc1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lending/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ lending.patches.v15_0.add_loan_product_code_and_rename_loan_name
lending.patches.v15_0.update_penalty_interest_method_in_loan_products
lending.patches.v15_0.update_min_bpi_application_days
lending.patches.v15_0.create_custom_field_for_collection_offset_sequence_for_settlement_collection
lending.patches.v15_0.rename_irac_provisioning_configuration_loan_product
lending.patches.v15_0.rename_irac_provisioning_configuration_loan_product
lending.patches.v15_0.update_due_date_in_accruals
11 changes: 11 additions & 0 deletions lending/patches/v15_0/update_due_date_in_accruals.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import frappe


def execute():
frappe.db.sql(
"""
UPDATE `tabLoan Interest Accrual`
SET due_date = posting_date
WHERE ifnull(due_date, '') = ''
"""
)

0 comments on commit 3f2cbc1

Please sign in to comment.