fix: Patch for old loans
This commit is contained in:
parent
3a9dc90695
commit
4f2a64479d
@ -70,7 +70,7 @@ def execute():
|
||||
payments = frappe.db.sql(''' SELECT j.name, a.debit, a.debit_in_account_currency, j.posting_date
|
||||
FROM `tabJournal Entry` j, `tabJournal Entry Account` a
|
||||
WHERE a.parent = j.name and a.reference_type='Loan' and a.reference_name = %s
|
||||
and account = %s
|
||||
and a.account = %s and j.docstatus = 1
|
||||
''', (loan.name, loan.loan_account), as_dict=1)
|
||||
|
||||
for payment in payments:
|
||||
|
Loading…
x
Reference in New Issue
Block a user