Skip to content
Snippets Groups Projects
Commit 7f2d23d0 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: [ bug #240 ] No description while adding a line in an Supplier

invoice
parent 5fb4962d
No related branches found
No related tags found
No related merge requests found
...@@ -434,7 +434,7 @@ if ($action == 'update_line') ...@@ -434,7 +434,7 @@ if ($action == 'update_line')
{ {
$prod = new Product($db); $prod = new Product($db);
$prod->fetch($_POST['idprod']); $prod->fetch($_POST['idprod']);
$label = $prod->libelle; $label = $prod->description;
if (trim($_POST['label']) != trim($label)) $label=$_POST['label']; if (trim($_POST['label']) != trim($label)) $label=$_POST['label'];
$type = $prod->type; $type = $prod->type;
...@@ -488,7 +488,7 @@ if ($action == 'addline') ...@@ -488,7 +488,7 @@ if ($action == 'addline')
// cas special pour lequel on a les meme reference que le fournisseur // cas special pour lequel on a les meme reference que le fournisseur
// $label = '['.$product->ref.'] - '. $product->libelle; // $label = '['.$product->ref.'] - '. $product->libelle;
$label = $product->libelle; $label = $product->description;
$tvatx=get_default_tva($societe,$mysoc,$product->id); $tvatx=get_default_tva($societe,$mysoc,$product->id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment