From 7f2d23d084010527802df6428a14f7efad16084a Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@destailleur.fr>
Date: Thu, 1 Dec 2011 22:23:59 +0100
Subject: [PATCH] Fix: [ bug #240 ] No description while adding a line in an
 Supplier invoice

---
 htdocs/fourn/facture/fiche.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php
index 1c15522f9ab..aaf1ed51689 100644
--- a/htdocs/fourn/facture/fiche.php
+++ b/htdocs/fourn/facture/fiche.php
@@ -434,7 +434,7 @@ if ($action == 'update_line')
         {
             $prod = new Product($db);
             $prod->fetch($_POST['idprod']);
-            $label = $prod->libelle;
+            $label = $prod->description;
             if (trim($_POST['label']) != trim($label)) $label=$_POST['label'];
 
             $type = $prod->type;
@@ -488,7 +488,7 @@ if ($action == 'addline')
 
             // cas special pour lequel on a les meme reference que le fournisseur
             // $label = '['.$product->ref.'] - '. $product->libelle;
-            $label = $product->libelle;
+            $label = $product->description;
 
             $tvatx=get_default_tva($societe,$mysoc,$product->id);
 
-- 
GitLab