mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-26 22:52:10 +01:00
fix: process loan interest accrual
(cherry picked from commit 9ef8d5c5c3)
This commit is contained in:
@@ -135,7 +135,11 @@ def calculate_accrual_amount_for_demand_loans(
|
|||||||
def make_accrual_interest_entry_for_demand_loans(
|
def make_accrual_interest_entry_for_demand_loans(
|
||||||
posting_date, process_loan_interest, open_loans=None, loan_type=None, accrual_type="Regular"
|
posting_date, process_loan_interest, open_loans=None, loan_type=None, accrual_type="Regular"
|
||||||
):
|
):
|
||||||
query_filters = {"status": ("in", ["Disbursed", "Partially Disbursed"]), "docstatus": 1}
|
query_filters = {
|
||||||
|
"status": ("in", ["Disbursed", "Partially Disbursed"]),
|
||||||
|
"docstatus": 1,
|
||||||
|
"is_term_loan": 0,
|
||||||
|
}
|
||||||
|
|
||||||
if loan_type:
|
if loan_type:
|
||||||
query_filters.update({"loan_type": loan_type})
|
query_filters.update({"loan_type": loan_type})
|
||||||
|
|||||||
Reference in New Issue
Block a user