mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
fix: ignore chunk if no valid invoices found
(cherry picked from commit f644c19760)
This commit is contained in:
@@ -53,6 +53,10 @@ def execute():
|
|||||||
for index in bar:
|
for index in bar:
|
||||||
chunk = docnames[index : index + chunk_size]
|
chunk = docnames[index : index + chunk_size]
|
||||||
doc_info = get_doc_details(chunk, doctype)
|
doc_info = get_doc_details(chunk, doctype)
|
||||||
|
if not doc_info:
|
||||||
|
# no valid invoices found
|
||||||
|
continue
|
||||||
|
|
||||||
docs = [d.name for d in doc_info] # valid invoices
|
docs = [d.name for d in doc_info] # valid invoices
|
||||||
|
|
||||||
# Delete existing item-wise tax details to avoid duplicates
|
# Delete existing item-wise tax details to avoid duplicates
|
||||||
|
|||||||
Reference in New Issue
Block a user