From e332e4aadc9bd8369c908cce0a836e816343e7cf Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 21 Mar 2007 00:39:17 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20une=20nouvelle=20facture=20cr=E9=E9e=20?= =?UTF-8?q?=E0=20partir=20d'un=20mod=E8le=20de=20facture=20r=E9curente=20e?= =?UTF-8?q?st=20une=20facture=20standard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 67abf772aaa..646d61da7a4 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -397,7 +397,7 @@ if ($_POST['action'] == 'add' && $user->rights->facture->creer) // Si facture récurrente $datefacture = mktime(12, 0 , 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']); - $facture->socid = $_POST['socid']; + $facture->socid = $_POST['socid']; $facture->type = $_POST['type']; $facture->number = $_POST['facnumber']; $facture->date = $datefacture; @@ -407,8 +407,8 @@ if ($_POST['action'] == 'add' && $user->rights->facture->creer) $facture->modelpdf = $_POST['model']; // Propriétés particulieres a facture recurrente - $facture->fac_rec = $_POST['fac_rec']; - $facture->type = 3; + $facture->fac_rec = $_POST['fac_rec']; + $facture->type = 0; $facid = $facture->create($user); }