mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-27 15:12:21 +01:00
fix: Only update open loans
This commit is contained in:
@@ -25,7 +25,7 @@ def execute():
|
||||
|
||||
loans = frappe.get_all('Loan', fields=['name', 'loan_type', 'company', 'status', 'mode_of_payment',
|
||||
'applicant_type', 'applicant', 'loan_account', 'payment_account', 'interest_income_account'],
|
||||
filters={'docstatus': 1})
|
||||
filters={'docstatus': 1, 'status': ('!=', 'Closed')})
|
||||
|
||||
for loan in loans:
|
||||
# Update details in Loan Types and Loan
|
||||
|
||||
Reference in New Issue
Block a user