diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php
index 5fdf7220662..71cd33a93cd 100644
--- a/htdocs/compta/resultat/clientfourn.php
+++ b/htdocs/compta/resultat/clientfourn.php
@@ -321,7 +321,7 @@ if ($modecompta == 'BOOKKEEPING') {
if ($showaccountdetail == 'no') {
if ($objp->pcg_type != $oldpcgtype) {
- print '
| '.$objp->pcg_type.' |
';
+ print '| '.dol_escape_htmltag($objp->pcg_type).' |
';
$oldpcgtype = $objp->pcg_type;
}
}
@@ -330,17 +330,17 @@ if ($modecompta == 'BOOKKEEPING') {
print '';
print ' | ';
print '';
- print $objp->pcg_type;
- print ($objp->name ? ' ('.$objp->name.')' : ' ('.$langs->trans("Unknown").')');
+ print dol_escape_htmltag($objp->pcg_type);
+ print ($objp->name ? ' ('.dol_escape_htmltag($objp->name).')' : ' ('.$langs->trans("Unknown").')');
print " | \n";
- print ''.price($objp->amount)." | \n";
+ print ''.price($objp->amount)." | \n";
print "
\n";
} else {
print '';
print '| ';
- print $objp->pcg_type;
+ print dol_escape_htmltag($objp->pcg_type);
print " | \n";
- print ''.price($objp->amount)." | \n";
+ print ''.price($objp->amount)." | \n";
print "
\n";
}
@@ -380,7 +380,7 @@ if ($modecompta == 'BOOKKEEPING') {
print '';
print ' | ';
print ' '.length_accountg($cpt['account_number']).' - '.$cpt['account_label'].' | ';
- print ''.price($resultN).' | ';
+ print ''.price($resultN).' | ';
print "
\n";
}
}
@@ -1539,27 +1539,27 @@ print '';
print '| '.$langs->trans("Income").' | ';
if ($modecompta == 'CREANCES-DETTES') {
- print ''.price(price2num($total_ht_income, 'MT')).' | ';
+ print ''.price(price2num($total_ht_income, 'MT')).' | ';
} elseif ($modecompta == 'RECETTES-DEPENSES') {
print ' | ';
}
-print ''.price(price2num($total_ttc_income, 'MT')).' | ';
+print ''.price(price2num($total_ttc_income, 'MT')).' | ';
print '
';
print '| '.$langs->trans("Outcome").' | ';
if ($modecompta == 'CREANCES-DETTES') {
- print ''.price(price2num(-$total_ht_outcome, 'MT')).' | ';
+ print ''.price(price2num(-$total_ht_outcome, 'MT')).' | ';
} elseif ($modecompta == 'RECETTES-DEPENSES') {
print ' | ';
}
-print ''.price(price2num(-$total_ttc_outcome, 'MT')).' | ';
+print ''.price(price2num(-$total_ttc_outcome, 'MT')).' | ';
print '
';
print '| '.$langs->trans("Profit").' | ';
if ($modecompta == 'CREANCES-DETTES') {
- print ''.price(price2num($total_ht, 'MT')).' | ';
+ print ''.price(price2num($total_ht, 'MT')).' | ';
} elseif ($modecompta == 'RECETTES-DEPENSES') {
print ' | ';
}
-print ''.price(price2num($total_ttc, 'MT')).' | ';
+print ''.price(price2num($total_ttc, 'MT')).' | ';
print '
';
print "";