From cdacf7374324372853a981e9a369b85bd97f5f27 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 8 Nov 2011 00:48:26 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20[=20bug=20#228=20]=20Facture=20depuis=20?= =?UTF-8?q?commande=20remis=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 25cd3a251f5..86848e8bbc9 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -713,6 +713,8 @@ if ($action == 'add' && $user->rights->facture->creer) for ($i=0;$i<$num;$i++) { + $desc=($lines[$i]->desc?$lines[$i]->desc:$lines[$i]->libelle); + if ($lines[$i]->subprice < 0) { // Negative line, we create a discount line @@ -739,7 +741,6 @@ if ($action == 'add' && $user->rights->facture->creer) else { // Positive line - $desc=($lines[$i]->desc?$lines[$i]->desc:$lines[$i]->libelle); $product_type=($lines[$i]->product_type?$lines[$i]->product_type:0); // Date start