mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 13:12:22 +01:00
fix: don't show disabled items in `Item Shortage Report` (#36550)
(cherry picked from commit 4a7fc1506f)
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
@@ -40,7 +40,12 @@ def get_data(filters):
|
|||||||
item.item_name,
|
item.item_name,
|
||||||
item.description,
|
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)
|
.orderby(bin.projected_qty)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user