From 5fd3109e7f27849d52eca1f9fa467890d2b8bb60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 8 May 2019 16:28:18 +0200 Subject: [PATCH] fix reassort with no product units --- htdocs/product/reassort.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/reassort.php b/htdocs/product/reassort.php index 72c36daa2a2..2d0cdf7eebe 100644 --- a/htdocs/product/reassort.php +++ b/htdocs/product/reassort.php @@ -118,8 +118,8 @@ $htmlother=new FormOther($db); $sql = 'SELECT p.rowid, p.ref, p.label, p.barcode, p.price, p.price_ttc, p.price_base_type, p.entity,'; $sql.= ' p.fk_product_type, p.tms as datem,'; $sql.= ' p.duration, p.tosell as statut, p.tobuy, p.seuil_stock_alerte, p.desiredstock,'; -$sql.= ' SUM(s.reel) as stock_physique,'; -if (! empty($conf->global->PRODUCT_USE_UNITS)) $sql.= ' u.short_label as unit_short'; +$sql.= ' SUM(s.reel) as stock_physique'; +if (! empty($conf->global->PRODUCT_USE_UNITS)) $sql.= ', u.short_label as unit_short'; $sql.= ' FROM '.MAIN_DB_PREFIX.'product as p'; $sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'product_stock as s on p.rowid = s.fk_product'; if (! empty($conf->global->PRODUCT_USE_UNITS)) $sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_units as u on p.fk_unit = u.rowid';