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

fix: patch due dates in loan interest accruals #183

Merged
merged 1 commit into from
May 10, 2024
Merged
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
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, '') = ''
"""
)
Loading