From e617b7b9b434cbb2f59f45ef8729706ecac7f6fc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 18 Mar 2006 20:11:54 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20bug=20#16117=20:=20Probl=E8me=20avec=20l?= =?UTF-8?q?a=20remise=20global?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index e69d0b85c3f..9920929cfa8 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -640,7 +640,7 @@ if ($_GET['action'] == 'create') $societe_id = $propal->soc_id; $projet=$propal->projetidp; $cond_reglement_id = $propal->cond_reglement_id; - $mode_reglement_id = $propal->mode_reglement_id; + $mode_reglement_id = $propal->mode_reglement_id; $soc->fetch($societe_id); } elseif ($_GET['commandeid']) @@ -651,7 +651,7 @@ if ($_GET['action'] == 'create') $projet=$commande-> projet_id; $ref_client=$commande->ref_client; $cond_reglement_id = $commande->cond_reglement_id; - $mode_reglement_id = $commande->mode_reglement_id; + $mode_reglement_id = $commande->mode_reglement_id; $soc->fetch($societe_id); } elseif ($_GET['contratid']) @@ -667,7 +667,7 @@ if ($_GET['action'] == 'create') $societe_id=$socidp; $soc->fetch($societe_id); $cond_reglement_id = $soc->cond_reglement; - $mode_reglement_id = $soc->mode_reglement; + $mode_reglement_id = $soc->mode_reglement; } @@ -763,10 +763,10 @@ if ($_GET['action'] == 'create') { print ''."\n"; print ''."\n"; + print ''."\n"; print ''."\n"; print ''."\n"; - print ''."\n"; - print ''; + print ''; print ''.$langs->trans('Proposal').''.$propal->ref.''; print ''.$langs->trans('GlobalDiscount').''.$propal->remise_percent.'%'; @@ -776,9 +776,12 @@ if ($_GET['action'] == 'create') } elseif ($_GET['commandeid'] > 0) { - $commande->remise_percent=$soc->remise_client; - print ''; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; print ''."\n"; + print ''; print ''.$langs->trans('Order').''.$commande->ref.''; print ''.$langs->trans('TotalHT').''.price($commande->total_ht).''; @@ -792,12 +795,12 @@ if ($_GET['action'] == 'create') $contrat->remise_percent=$soc->remise_client; $contrat->update_price(); - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''; print ''.$langs->trans('Contract').''.$contrat->ref.''; print ''.$langs->trans('TotalHT').''.price($contrat->total_ht).'';