From 79a4182560bbc1ee043903484887d07b763d2dee Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 16 Feb 2006 17:46:09 +0000 Subject: [PATCH] Ajout mode_reglement et cond_reglement dans commande --- htdocs/compta/facture.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index afaa8833ed0..d2e9db128d1 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -627,6 +627,8 @@ if ($_GET['action'] == 'create') $societe_id = $commande->soc_id; $projet=$commande-> projet_id; $ref_client=$commande->ref_client; + $cond_reglement_id = $commande->cond_reglement_id; + $mode_reglement_id = $commande->mode_reglement_id; $soc->fetch($societe_id); } elseif ($_GET['contratid']) @@ -641,6 +643,8 @@ if ($_GET['action'] == 'create') { $societe_id=$socidp; $soc->fetch($societe_id); + $cond_reglement_id = $soc->cond_reglement; + $mode_reglement_id = $soc->mode_reglement; } @@ -666,12 +670,12 @@ if ($_GET['action'] == 'create') // Conditions de réglement print ''.$langs->trans('PaymentConditions').''; - $html->select_conditions_paiements($soc->cond_reglement,'cond_reglement_id'); + $html->select_conditions_paiements($cond_reglement_id,'cond_reglement_id'); print ''; // Mode de réglement print ''.$langs->trans('PaymentMode').''; - $html->select_types_paiements($soc->mode_reglement,'mode_reglement_id'); + $html->select_types_paiements($mode_reglement_id,'mode_reglement_id'); print ''; // Projet