From 844418fe21b05a58bbe79d0a045ba25f212382a3 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 12 Feb 2006 18:02:36 +0000 Subject: [PATCH] bugfix --- htdocs/compta/facture.php | 4 ++-- htdocs/facture.class.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index daa48ee1ad7..f06b3e19bb5 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -3,7 +3,8 @@ * Copyright (C) 2004 Éric Seigne * Copyright (C) 2004-2005 Laurent Destailleur * Copyright (C) 2005 Marc Barilley / Ocebo - * Copyright (C) 2006 Andre Cianfarani + * Copyright (C) 2005-2006 Regis Houssin + * Copyright (C) 2006 Andre Cianfarani * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -343,7 +344,6 @@ if ($_POST['action'] == 'addligne' && $user->rights->facture->creer) $result = $fac->addline( $_POST['facid'], $_POST['desc'], - $_POST['product_desc'], $_POST['pu'], $_POST['qty'], $_POST['tva_tx'], diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index d5c349b1f11..03bc41ae61c 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -1009,7 +1009,7 @@ class Facture * \param dateend date de fin de validité du service * \param ventil code de ventilation comptable */ - function addline($facid, $desc, $product_desc, $pu, $qty, $txtva, $fk_product=0, $remise_percent=0, $datestart='', $dateend='', $ventil = 0) + function addline($facid, $desc, $pu, $qty, $txtva, $fk_product=0, $remise_percent=0, $datestart='', $dateend='', $ventil = 0) { global $conf; dolibarr_syslog("facture.class.php::addline($facid,$desc,$pu,$qty,$txtva,$fk_product,$remise_percent,$datestart,$dateend,$ventil)");