From 2d2e83696577b2ccadf656a4c5a219134c392fd7 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 15 Nov 2018 17:42:43 +0100 Subject: [PATCH 1/2] FIX more simple --- htdocs/compta/paiement.php | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index 32e042c5731..dbba1c91cd9 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -579,11 +579,13 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie print ''.$arraytitle.''; print ''.$langs->trans('Date').''; print ''.$langs->trans('DateMaxPayment').''; - if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('Currency').''; - if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyAmountTTC').''; - if (!empty($conf->multicurrency->enabled)) print ''.$multicurrencyalreadypayedlabel.''; - if (!empty($conf->multicurrency->enabled)) print ''.$multicurrencyremaindertopay.''; - if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyPaymentAmount').''; + if (!empty($conf->multicurrency->enabled)) { + print ''.$langs->trans('Currency').''; + print ''.$langs->trans('MulticurrencyAmountTTC').''; + print ''.$multicurrencyalreadypayedlabel.''; + print ''.$multicurrencyremaindertopay.''; + print ''.$langs->trans('MulticurrencyPaymentAmount').''; + } print ''.$langs->trans('AmountTTC').''; print ''.$alreadypayedlabel.''; print ''.$remaindertopay.''; @@ -612,8 +614,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie $remaintopay=price2num($invoice->total_ttc - $paiement - $creditnotes - $deposits,'MT'); // Multicurrency Price - if (!empty($conf->multicurrency->enabled)) - { + if (!empty($conf->multicurrency->enabled)) { $multicurrency_payment = $invoice->getSommePaiement(1); $multicurrency_creditnotes=$invoice->getSumCreditNotesUsed(1); $multicurrency_deposits=$invoice->getSumDepositsUsed(1); @@ -630,25 +631,25 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie // Date print ''.dol_print_date($db->jdate($objp->df),'day')."\n"; - + // Date Max Payment if ($objp->dlr > 0 ) { print ''; print dol_print_date($db->jdate($objp->dlr), 'day'); - + if ($invoice->hasDelay()) { print img_warning($langs->trans('Late')); } - + print ''; } else { print '--'; } - + // Currency if (!empty($conf->multicurrency->enabled)) print ''.$objp->multicurrency_code."\n"; @@ -760,11 +761,12 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie // Print total print ''; print ''.$langs->trans('TotalTTC').''; - if (!empty($conf->multicurrency->enabled)) print ''; - if (!empty($conf->multicurrency->enabled)) print ''; - if (!empty($conf->multicurrency->enabled)) print ''; - if (!empty($conf->multicurrency->enabled)) print ''; - if (!empty($conf->multicurrency->enabled)) print ''; + if (!empty($conf->multicurrency->enabled)) { + print ''; + print ''; + print ''; + print ''; + } print ''.price($sign * $total_ttc).''; print ''.price($sign * $totalrecu); if ($totalrecucreditnote) print '+'.price($totalrecucreditnote); From ffc9b02322fac94c5af65778f25ab526551fc908 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 15 Nov 2018 18:28:12 +0100 Subject: [PATCH 2/2] FIX missing one column --- htdocs/compta/paiement.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index dbba1c91cd9..ef9e7f81f43 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -765,6 +765,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie print ''; print ''; print ''; + print ''; print ''; } print ''.price($sign * $total_ttc).'';