Merge pull request #35012 from rohitwaghchaure/fixed-incorrect-bom-end-of-life

fix: item not showing in the BOM
This commit is contained in:
rohitwaghchaure 2023-04-24 18:06:37 +05:30 committed by GitHub
commit 5d8bf56cb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1317,7 +1317,7 @@ def item_query(doctype, txt, searchfield, start, page_len, filters):
if not field in searchfields
]
query_filters = {"disabled": 0, "end_of_life": (">", today())}
query_filters = {"disabled": 0, "ifnull(end_of_life, '3099-12-31')": (">", today())}
or_cond_filters = {}
if txt: