This commit is contained in:
Laurent Destailleur 2011-09-11 10:34:08 +00:00
parent 448eb32ffb
commit fc7700501f
2 changed files with 2 additions and 3 deletions

View File

@ -727,8 +727,7 @@ if ($action == 'add' && $user->rights->facture->creer)
$discountid=$discount->create($user); $discountid=$discount->create($user);
if ($discountid > 0) if ($discountid > 0)
{ {
$result=$object->insert_discount($discountid); $result=$object->insert_discount($discountid); // This include link_to_invoice
//$result=$discount->link_to_invoice($lineid,$id);
} }
else else
{ {

View File

@ -1107,7 +1107,7 @@ class Facture extends CommonObject
$result=$this->update_price(1); $result=$this->update_price(1);
if ($result > 0) if ($result > 0)
{ {
// Cr<EFBFBD>e lien entre remise et ligne de facture // Create linke between discount and invoice line
$result=$remise->link_to_invoice($lineid,0); $result=$remise->link_to_invoice($lineid,0);
if ($result < 0) if ($result < 0)
{ {