mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
fix: do not execute patch if no advance doctypes
This commit is contained in:
@@ -32,6 +32,10 @@ def execute():
|
||||
"""
|
||||
frappe.db.truncate(DOCTYPE)
|
||||
advance_doctpyes = get_advance_payment_doctypes()
|
||||
|
||||
if not advance_doctpyes:
|
||||
return
|
||||
|
||||
make_advance_ledger_entries_for_payment_entries(advance_doctpyes)
|
||||
make_advance_ledger_entries_for_journal_entries(advance_doctpyes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user