From e52a0b20a221b2ef82f72dab9e2c0f342eca923a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 12 May 2010 17:21:12 +0000 Subject: [PATCH] Postgresql compatibility --- htdocs/expedition/shipment.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php index 66a374f9b7b..d5ae1747752 100644 --- a/htdocs/expedition/shipment.php +++ b/htdocs/expedition/shipment.php @@ -1,6 +1,6 @@ - * Copyright (C) 2005-2009 Laurent Destailleur + * Copyright (C) 2005-2010 Laurent Destailleur * Copyright (C) 2005-2010 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -386,7 +386,8 @@ if ($id > 0 || ! empty($ref)) */ print ''; - $sql = "SELECT cd.rowid, cd.fk_product, cd.product_type, cd.description, cd.price, cd.tva_tx, cd.subprice,"; + $sql = "SELECT cd.rowid, cd.fk_product, cd.product_type, cd.description,"; + $sql.= " cd.price, cd.tva_tx, cd.subprice,"; $sql.= " cd.qty,"; $sql.= ' cd.date_start,'; $sql.= ' cd.date_end,'; @@ -396,7 +397,7 @@ if ($id > 0 || ! empty($ref)) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON cd.fk_product = p.rowid"; $sql.= " WHERE cd.fk_commande = ".$commande->id; // $sql.= " AND p.fk_product_type <> 1"; Why this line ? - $sql.= " GROUP by cd.rowid, cd.fk_product"; + //$sql.= " GROUP by cd.rowid, cd.fk_product"; $sql.= " ORDER BY cd.rang, cd.rowid"; //print $sql;