diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php
index 32e042c5731..ef9e7f81f43 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,13 @@ 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 ' | ';
+ }
print ''.price($sign * $total_ttc).' | ';
print ''.price($sign * $totalrecu);
if ($totalrecucreditnote) print '+'.price($totalrecucreditnote);
diff --git a/htdocs/compta/salaries/stats/index.php b/htdocs/compta/salaries/stats/index.php
index edb48edc303..6471f66cf57 100644
--- a/htdocs/compta/salaries/stats/index.php
+++ b/htdocs/compta/salaries/stats/index.php
@@ -187,7 +187,7 @@ $head[$h][1] = $langs->trans("ByMonthYear");
$head[$h][2] = 'byyear';
$h++;
-complete_head_from_modules($conf,$langs,null,$head,$h,'trip_stats');
+complete_head_from_modules($conf,$langs,null,$head,$h,'salaries_stats');
dol_fiche_head($head, 'byyear', $langs->trans("Statistics"), -1);
@@ -197,7 +197,7 @@ print '';
// Show filter box
print ' |