diff --git a/htdocs/compta/stats/cabyuser.php b/htdocs/compta/stats/cabyuser.php
index 8d49711b121..fb9b06025aa 100644
--- a/htdocs/compta/stats/cabyuser.php
+++ b/htdocs/compta/stats/cabyuser.php
@@ -170,9 +170,11 @@ elseif ($modecompta == "RECETTES-DEPENSES")
}
elseif ($modecompta == "BOOKKEEPING")
{
+ // TODO
}
elseif ($modecompta == "BOOKKEEPINGCOLLECTED")
{
+ // TODO
}
$period = $form->selectDate($date_start, 'date_start', 0, 0, 0, '', 1, 0).' - '.$form->selectDate($date_end, 'date_end', 0, 0, 0, '', 1, 0);
if ($date_end == dol_time_plus_duree($date_start, 1, 'y') - 1) $periodlink = ''.img_previous().' '.img_next().'';
@@ -387,39 +389,53 @@ if (count($amount)) {
// Amount w/o VAT
print '
';
- if ($modecompta != 'CREANCES-DETTES')
- {
+ if ($modecompta == 'RECETTES-DEPENSES') {
if ($key > 0) {
- print '';
+ //print '';
} else {
- print '';
+ //print '';
}
- } else {
+ }
+ elseif ($modecompta == 'CREANCES-DETTES') {
if ($key > 0) {
print '';
} else {
- print '';
+ //print '';
}
print price($amount_ht[$key]);
+ if ($key > 0) print '';
}
print ' | ';
// Amount with VAT
print '';
- if ($modecompta != 'CREANCES-DETTES') {
+ if ($modecompta == 'RECETTES-DEPENSES') {
if ($key > 0) {
- print '';
+ //print '';
} else {
- print '';
+ //print '';
}
- } else {
+ }
+ elseif ($modecompta == 'CREANCES-DETTES') {
if ($key > 0) {
print '';
} else {
- print '';
+ //print '';
}
}
print price($amount[$key]);
+ if ($modecompta == 'RECETTES-DEPENSES') {
+ if ($key > 0) {
+ //print '';
+ } else {
+ //print '';
+ }
+ }
+ elseif ($modecompta == 'CREANCES-DETTES') {
+ if ($key > 0) {
+ print '';
+ }
+ }
print ' | ';
// Percent