diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 57c3c59cf39..0019765095f 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -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 { diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 0545b772a21..5ee4c1142bf 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1107,7 +1107,7 @@ class Facture extends CommonObject $result=$this->update_price(1); if ($result > 0) { - // Cr�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) {