Comment
This commit is contained in:
parent
448eb32ffb
commit
fc7700501f
@ -727,8 +727,7 @@ if ($action == 'add' && $user->rights->facture->creer)
|
||||
$discountid=$discount->create($user);
|
||||
if ($discountid > 0)
|
||||
{
|
||||
$result=$object->insert_discount($discountid);
|
||||
//$result=$discount->link_to_invoice($lineid,$id);
|
||||
$result=$object->insert_discount($discountid); // This include link_to_invoice
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -1107,7 +1107,7 @@ class Facture extends CommonObject
|
||||
$result=$this->update_price(1);
|
||||
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);
|
||||
if ($result < 0)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user