Skip to content

Commit

Permalink
fix: don't show disabled items in Item Shortage Report (#36550)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4a7fc15)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Aug 10, 2023
1 parent 8abc0ad commit ae173c8
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)

Expand Down

0 comments on commit ae173c8

Please sign in to comment.