From 43beb38c9b7b69f20c56efe167de9190b47ea3c3 Mon Sep 17 00:00:00 2001 From: simnandez Date: Tue, 10 Sep 2013 11:04:36 +0200 Subject: [PATCH] Fix: [ bug #1061 ] Bad info shipped products --- ChangeLog | 2 ++ htdocs/commande/class/commande.class.php | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 10992d1d875..c4a7b89e7af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23,8 +23,10 @@ Fix: Intervention box links to contracts id Fix: Compatiblity with multicompany module Fix: Edit propal line was losing product supplier price id Fix: Delete linked element to supplier invoice when deleted +Fix: [ bug #1061 ] Bad info shipped products Qual: Add travis-ci integration + ***** ChangeLog for 3.4 compared to 3.3.* ***** For users: - New: Can use ODS templates as document templates. diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 21b55a39413..4e00900d995 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -3,10 +3,10 @@ * Copyright (C) 2004-2012 Laurent Destailleur * Copyright (C) 2005-2013 Regis Houssin * Copyright (C) 2006 Andre Cianfarani - * Copyright (C) 2010-2012 Juanjo Menent + * Copyright (C) 2010-2013 Juanjo Menent * Copyright (C) 2011 Jean Heimburger * Copyright (C) 2012 Christophe Battarel - * Copyright (C) 2013 Florian Henry + * Copyright (C) 2013 Florian Henry * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU *General Public License as published by @@ -1597,7 +1597,7 @@ class Commande extends CommonOrder if ($filtre_statut >= 0) $sql.= ' ed.fk_expedition = e.rowid AND'; $sql.= ' ed.fk_origin_line = cd.rowid'; $sql.= ' AND cd.fk_commande =' .$this->id; - if ($filtre_statut >= 0) $sql.=' AND e.fk_statut = '.$filtre_statut; + if ($filtre_statut >= 0) $sql.=' AND e.fk_statut >= '.$filtre_statut; $sql.= ' GROUP BY cd.rowid, cd.fk_product'; //print $sql;