Merge pull request #50676 from frappe/mergify/bp/version-16-beta/pr-50675

fix: ignore chunk if no valid invoices found (backport #50675)
This commit is contained in:
Lakshit Jain
2025-11-21 18:27:34 +05:30
committed by GitHub

View File

@@ -53,6 +53,10 @@ def execute():
for index in bar:
chunk = docnames[index : index + chunk_size]
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
# Delete existing item-wise tax details to avoid duplicates