From 58daf562d6bb046f1f67c2e249b059edc9bbc67e Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 6 Oct 2007 12:08:09 +0000 Subject: [PATCH] modifs esthetique mineure --- htdocs/compta/commande/fiche.php | 128 +------------------------------ 1 file changed, 4 insertions(+), 124 deletions(-) diff --git a/htdocs/compta/commande/fiche.php b/htdocs/compta/commande/fiche.php index b7dba77362d..d985743f310 100644 --- a/htdocs/compta/commande/fiche.php +++ b/htdocs/compta/commande/fiche.php @@ -319,11 +319,9 @@ if ($_GET["id"] > 0) print ''.$langs->trans('VAT').''; print ''.$langs->trans('PriceUHT').''; print ''.$langs->trans('Qty').''; - print ''.$langs->trans('ReductionShort').''; - print ''.$langs->trans('AmountHT').''; - print ' '; - print ' '; - print ' '; + print ''.$langs->trans('ReductionShort').''; + print ''.$langs->trans('AmountHT').''; + print ' '; print "\n"; } @@ -395,9 +393,7 @@ if ($_GET["id"] > 0) print ''.price($objp->subprice*$objp->qty*(100-$objp->remise_percent)/100)."\n"; - print ' '; - print ' '; - print ' '; + print ' '; print ''; $total = $total + ($objp->qty * $objp->price); @@ -410,122 +406,6 @@ if ($_GET["id"] > 0) dolibarr_print_error($db); } - /* - * Lignes de remise - */ - - // Réductions relatives (Remises-Ristournes-Rabbais) -/* Une réduction doit s'appliquer obligatoirement sur des lignes de factures - et non globalement - $var=!$var; - print '
'; - print ''; - print ''; - print ''; - print $langs->trans('CustomerRelativeDiscount'); - if ($commande->brouillon) print ' ('.($soc->remise_client?$langs->trans("CompanyHasRelativeDiscount",$soc->remise_client):$langs->trans("CompanyHasNoRelativeDiscount")).')'; - print ''; - print ' '; - print ' '; - print ' '; - print ''; - if ($_GET['action'] == 'editrelativediscount') - { - print '%'; - } - else - { - print $commande->remise_percent?$commande->remise_percent.'%':' '; - } - print ''; - print ''; - if ($_GET['action'] != 'editrelativediscount') print $commande->remise_percent?'-'.price($commande->remise_percent*$total/100):$langs->trans("DiscountNone"); - else print ' '; - print ''; - if ($_GET['action'] != 'editrelativediscount') - { - if (1 == 2 && $commande->brouillon && $user->rights->facture->creer) - { - print 'id.'">'.img_edit($langs->trans('SetRelativeDiscount'),1).''; - } - else - { - print ' '; - } - if (1 == 2 && $commande->brouillon && $user->rights->facture->creer && $commande->remise_percent) - { - print 'rowid.'">'; - print img_delete(); - print ''; - } - else - { - print ' '; - } - print ' '; - } - else - { - print ''; - } - print ''; - print '
'; -*/ - - // Remises absolue -/* Les remises absolues doivent s'appliquer par ajout de lignes spécialisées - $var=!$var; - print '
'; - print ''; - print ''; - print ''; - print $langs->trans('CustomerAbsoluteDiscount'); - if ($commande->brouillon) print ' ('.($avoir_en_cours?$langs->trans("CompanyHasAbsoluteDiscount",$avoir_en_cours,$langs->trans("Currency".$conf->monnaie)):$langs->trans("CompanyHasNoAbsoluteDiscount")).')'; - print ''; - print ' '; - print ' '; - print ' '; - print ' '; - print ''; - if ($_GET['action'] == 'editabsolutediscount') - { - print '-'; - } - else - { - print $commande->remise_absolue?'-'.price($commande->remise_absolue):$langs->trans("DiscountNone"); - } - print ''; - if ($_GET['action'] != 'editabsolutediscount') - { - if (1 == 2 && $commande->brouillon && $user->rights->facture->creer) - { - print 'id.'">'.img_edit($langs->trans('SetAbsoluteDiscount'),1).''; - } - else - { - print ' '; - } - if (1 == 2 && $commande->brouillon && $user->rights->facture->creer && $commande->remise_absolue) - { - print 'rowid.'">'; - print img_delete(); - print ''; - } - else - { - print ' '; - } - print ' '; - } - else - { - print ''; - } - print ''; - print '
'; -*/ - print ''; print '';