From 5ec9579d93fc151282140fc4710fbe6dc3dcb1b6 Mon Sep 17 00:00:00 2001 From: Hicham Lahlou Date: Fri, 12 Jul 2024 17:44:08 +0200 Subject: [PATCH] table name change from 15 to 16 --- frepple/controllers/outbound.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frepple/controllers/outbound.py b/frepple/controllers/outbound.py index 3ae2324..253731d 100644 --- a/frepple/controllers/outbound.py +++ b/frepple/controllers/outbound.py @@ -2826,16 +2826,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 """ )