mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +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)
|
frappe.db.truncate(DOCTYPE)
|
||||||
advance_doctpyes = get_advance_payment_doctypes()
|
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_payment_entries(advance_doctpyes)
|
||||||
make_advance_ledger_entries_for_journal_entries(advance_doctpyes)
|
make_advance_ledger_entries_for_journal_entries(advance_doctpyes)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user