From fc7700501fc4b7454690d0f24db1ad90d94eb649 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 11 Sep 2011 10:34:08 +0000 Subject: [PATCH] Comment --- htdocs/compta/facture.php | 3 +-- htdocs/compta/facture/class/facture.class.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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) {