fix inventory query

This commit is contained in:
Schneider Roland 2022-12-02 19:02:17 +01:00
parent 9bfb0d676e
commit d1f4c279ae

View File

@ -62,7 +62,7 @@ class InventoryItemSearch extends InventoryItem
'inventory_item.created_at as item_created_at', 'inventory_item.created_at as item_created_at',
new Expression('case when inventory_item.id_product is null then inventory_group.name else product.name end as item_name'), new Expression('case when inventory_item.id_product is null then inventory_group.name else product.name end as item_name'),
'user.username as user_username', 'user.username as user_username',
'coalesce(inventory_item.count_prev ,0)as item_count_prev', 'coalesce(inventory_item.count_prev ,0) as item_count_prev',
'coalesce(inventory_item.count_in,0) as item_count_in', 'coalesce(inventory_item.count_in,0) as item_count_in',
'coalesce(inventory_item.count_sold,0) as item_count_sold', 'coalesce(inventory_item.count_sold,0) as item_count_sold',
'coalesce(inventory_item.count,0) as item_count', 'coalesce(inventory_item.count,0) as item_count',