From 1f973548ca6b5edde03439354333caec3b099f3f Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Thu, 3 Jan 2013 11:06:05 +0100 Subject: [PATCH] add amount on orders list lines and total at the bottom of table --- htdocs/commande/liste.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php index 607c4129506..e04c090c3d4 100644 --- a/htdocs/commande/liste.php +++ b/htdocs/commande/liste.php @@ -4,6 +4,7 @@ * Copyright (C) 2005 Marc Barilley / Ocebo * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2012 Juanjo Menent + * Copyright (C) 2013 Christophe Battarel * * 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 @@ -275,6 +276,7 @@ if ($resql) print_liste_field_titre($langs->trans('RefCustomerOrder'),$_SERVER["PHP_SELF"],'c.ref_client','',$param,'',$sortfield,$sortorder); print_liste_field_titre($langs->trans('OrderDate'),$_SERVER["PHP_SELF"],'c.date_commande','',$param, 'align="right"',$sortfield,$sortorder); print_liste_field_titre($langs->trans('DeliveryDate'),$_SERVER["PHP_SELF"],'c.date_livraison','',$param, 'align="right"',$sortfield,$sortorder); + print_liste_field_titre($langs->trans('AmountHT'),$_SERVER["PHP_SELF"],'c.total_ht','',$param, 'align="right"',$sortfield,$sortorder); print_liste_field_titre($langs->trans('Status'),$_SERVER["PHP_SELF"],'c.fk_statut','',$param,'align="right"',$sortfield,$sortorder); print ''; print ''; @@ -286,6 +288,7 @@ if ($resql) print ''; print ' '; print ' '; + print ' '; print ''; print ''; print ''; @@ -370,6 +373,9 @@ if ($resql) print ' '.$y.''; print ''; + // Amount HT + print ''.price($objp->total_ht).''; + // Statut print ''.$generic_commande->LibStatut($objp->fk_statut,$objp->facturee,5).''; @@ -379,6 +385,13 @@ if ($resql) $subtotal+=$objp->total_ht; $i++; } + $var=!$var; + print ''; + print ''.$langs->trans('TotalHT').''; + // Total HT + print ''.price($total).''; + print ' '; + print ''; print ''; print '';