fix: don't show disabled items in Item Shortage Report (#36550)

This commit is contained in:
s-aga-r
2023-08-10 09:40:58 +05:30
committed by GitHub
parent ad33cd73e8
commit 4a7fc1506f

View File

@@ -40,7 +40,12 @@ def get_data(filters):
item.item_name,
item.description,
)
.where((bin.projected_qty < 0) & (wh.name == bin.warehouse) & (bin.item_code == item.name))
.where(
(item.disabled == 0)
& (bin.projected_qty < 0)
& (wh.name == bin.warehouse)
& (bin.item_code == item.name)
)
.orderby(bin.projected_qty)
)