From d9e82272cf3a85113813642bb0c935e668886ff4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 14 Sep 2009 01:27:00 +0000 Subject: [PATCH] Fix: Some fixes in point of sale module --- htdocs/cashdesk/templates/facturation1.tpl.php | 2 +- htdocs/cashdesk/templates/liste_articles.tpl.php | 3 +-- htdocs/cashdesk/templates/ticket.tpl.php | 5 ++--- htdocs/langs/en_US/bills.lang | 2 ++ htdocs/langs/fr_FR/bills.lang | 2 ++ 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/htdocs/cashdesk/templates/facturation1.tpl.php b/htdocs/cashdesk/templates/facturation1.tpl.php index c59ed8086ba..3dfd017a7ef 100644 --- a/htdocs/cashdesk/templates/facturation1.tpl.php +++ b/htdocs/cashdesk/templates/facturation1.tpl.php @@ -155,7 +155,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
trans("Difference"); ?> - + diff --git a/htdocs/cashdesk/templates/liste_articles.tpl.php b/htdocs/cashdesk/templates/liste_articles.tpl.php index 18793f4a44e..e6f54eab523 100644 --- a/htdocs/cashdesk/templates/liste_articles.tpl.php +++ b/htdocs/cashdesk/templates/liste_articles.tpl.php @@ -59,9 +59,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. } $remise = $tab[$i]['remise']; - $total_ht = ($tab[$i]['total_ht'] - $remise); - echo ('

'.$tab[$i]['qte'].' x '.price2num( $tab[$i]['price'], 'MT').$remise_percent.' = '.price2num($total_ht, 'MT').' '.$conf->monnaie.' HT ('.price2num($tab[$i]['total_ttc'], 'MT').' '.$conf->monnaire.' TTC)

'."\n"); + echo ('

'.$tab[$i]['qte'].' x '.price2num( $tab[$i]['price'], 'MT').$remise_percent.' = '.price2num($tab[$i]['total_ht'], 'MT').' '.$conf->monnaie.' HT ('.price2num($tab[$i]['total_ttc'], 'MT').' '.$conf->monnaie.' TTC)

'."\n"); echo (''."\n"); } diff --git a/htdocs/cashdesk/templates/ticket.tpl.php b/htdocs/cashdesk/templates/ticket.tpl.php index 4e464db196a..647e75d0e34 100644 --- a/htdocs/cashdesk/templates/ticket.tpl.php +++ b/htdocs/cashdesk/templates/ticket.tpl.php @@ -40,6 +40,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. position: absolute; top: 0; right: 0; + font-size: 16px; } .infos { @@ -133,9 +134,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. for ( $i = 0; $i < count($tab); $i++ ) { $remise = $tab[$i]['remise']; - $total_ht = $tab[$i]['total_ht'] - $remise; - - echo (''."\n"); + echo (''."\n"); } diff --git a/htdocs/langs/en_US/bills.lang b/htdocs/langs/en_US/bills.lang index 9c5be50210e..346c4b4e62d 100644 --- a/htdocs/langs/en_US/bills.lang +++ b/htdocs/langs/en_US/bills.lang @@ -351,6 +351,8 @@ UsBillingContactAsIncoiveRecipientIfExist=Use customer billing contact address i ShowUnpaidLateOnly=Show late unpaid invoice only PaymentInvoiceRef=Payment invoice %s ValidateInvoice=Validate invoice +Cash=Cash +Reported=Delayed # oursin PDF model Of=du diff --git a/htdocs/langs/fr_FR/bills.lang b/htdocs/langs/fr_FR/bills.lang index 49f64914c33..aa44f6bdc70 100644 --- a/htdocs/langs/fr_FR/bills.lang +++ b/htdocs/langs/fr_FR/bills.lang @@ -353,6 +353,8 @@ ShowUnpaidAll=Afficher tous les impayés ShowUnpaidLateOnly=Afficher impayés en retard uniquement PaymentInvoiceRef=Paiement facture %s ValidateInvoice=Valider facture +Cash=Liquide +Reported=Différé # oursin PDF model Of=du
trans("DueAmount"); ?>trans("Received"); ?>trans("RemainderToPay"); ?>
trans("AmountExpected"); ?>trans("Received"); ?>trans("ExcessReceived"); ?>
'.$tab[$i]['ref'].''.$tab[$i]['label'].''.$tab[$i]['qte'].''.$tab[$i]['remise_percent'].''.price2num($total_ht,'MT').' '.$conf->monnaie.'
'.$tab[$i]['ref'].''.$tab[$i]['label'].''.$tab[$i]['qte'].''.$tab[$i]['remise_percent'].''.price2num($tab[$i]['total_ht'],'MT').' '.$conf->monnaie.'