Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/16.0' into 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hichamlahlou committed Jul 12, 2024
2 parents 38734c4 + 5ec9579 commit 9806e2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frepple/controllers/outbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -2860,16 +2860,16 @@ def export_stockorders(self):
stock_quant.location_id,
sum(stock_quant.quantity) as quantity,
sum(stock_quant.reserved_quantity) as reserved_quantity,
stock_production_lot.name as lot_name,
stock_production_lot.expiration_date
stock_lot.name as lot_name,
stock_lot.expiration_date
FROM stock_quant
left outer join stock_production_lot on stock_quant.lot_id = stock_production_lot.id
and stock_production_lot.product_id = stock_quant.product_id
left outer join stock_lot on stock_quant.lot_id = stock_lot.id
and stock_lot.product_id = stock_quant.product_id
WHERE quantity > 0
GROUP BY stock_quant.product_id,
stock_quant.location_id,
stock_production_lot.name,
stock_production_lot.expiration_date
stock_lot.name,
stock_lot.expiration_date
ORDER BY location_id ASC
"""
)
Expand Down

0 comments on commit 9806e2d

Please sign in to comment.