mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
chore: Loan Interest Accrual post topup
This commit is contained in:
@@ -306,7 +306,7 @@ def get_last_accrual_date(loan, posting_date):
|
|||||||
def get_last_disbursement_date(loan, posting_date):
|
def get_last_disbursement_date(loan, posting_date):
|
||||||
last_disbursement_date = frappe.db.get_value(
|
last_disbursement_date = frappe.db.get_value(
|
||||||
"Loan Disbursement",
|
"Loan Disbursement",
|
||||||
{"docstatus": 1, "against_loan": loan, "posting_date": ("<", posting_date)},
|
{"docstatus": 1, "against_loan": loan, "posting_date": ("<=", posting_date)},
|
||||||
"MAX(posting_date)",
|
"MAX(posting_date)",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user