fix: disabled batches showing in the list (#43024)

This commit is contained in:
rohitwaghchaure
2024-09-05 15:39:15 +05:30
committed by GitHub
parent a8055a6da9
commit c13a147df1

View File

@@ -371,7 +371,7 @@ def get_batch_no(doctype, txt, searchfield, start, page_len, filters):
def get_empty_batches(filters, start, page_len, filtered_batches=None, txt=None): def get_empty_batches(filters, start, page_len, filtered_batches=None, txt=None):
query_filter = {"item": filters.get("item_code")} query_filter = {"item": filters.get("item_code"), "disabled": 0}
if txt: if txt:
query_filter["name"] = ("like", f"%{txt}%") query_filter["name"] = ("like", f"%{txt}%")