Merge pull request #33355 from rohitwaghchaure/fixed-do-not-show-disabled-items

fix: disabled items showing in the report Itemwise Recommended Reorder Level
This commit is contained in:
rohitwaghchaure 2022-12-15 18:08:05 +05:30 committed by GitHub
commit da1d8da355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ def get_item_info(filters):
item.safety_stock, item.safety_stock,
item.lead_time_days, item.lead_time_days,
) )
.where(item.is_stock_item == 1) .where((item.is_stock_item == 1) & (item.disabled == 0))
) )
if brand := filters.get("brand"): if brand := filters.get("brand"):