Fix: [ bug #228 ] Facture depuis commande remisée

This commit is contained in:
Laurent Destailleur 2011-11-08 00:50:33 +01:00
parent 5fd87f1290
commit 5a2b697c2e

View File

@ -738,6 +738,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
@ -765,7 +767,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