From 9db6c779f0fc251853e4e6e5274136200c811baf Mon Sep 17 00:00:00 2001 From: Yoan Mollard Date: Fri, 5 Aug 2022 04:16:23 +0200 Subject: [PATCH] Fix layout of Incomes-Expenses + Claims-Debts accounting tables --- htdocs/compta/resultat/clientfourn.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php index 30d4f4ce825..ab2a339cc40 100644 --- a/htdocs/compta/resultat/clientfourn.php +++ b/htdocs/compta/resultat/clientfourn.php @@ -249,7 +249,10 @@ if ($date_endyear) { } print ''; -print ''; +print ''; +if ($modecompta != 'CREANCES-DETTES') { + print_liste_field_titre(''); // Make 4 columns in total whatever $modecompta is +} if ($modecompta == 'BOOKKEEPING') { print_liste_field_titre("PredefinedGroups", $_SERVER["PHP_SELF"], 'f.thirdparty_code,f.rowid', '', $param, '', $sortfield, $sortorder, 'width200 '); } else { @@ -1525,18 +1528,24 @@ print ''; print ''; if ($modecompta == 'CREANCES-DETTES') { print ''; +} else { + print(''); } print ''; print ''; print ''; if ($modecompta == 'CREANCES-DETTES') { print ''; +} else { + print(''); } print ''; print ''; print ''; if ($modecompta == 'CREANCES-DETTES') { print ''; +} else { + print(''); } print ''; print '';
'.$langs->trans("Income").''.price(price2num($total_ht_income, 'MT')).''.price(price2num($total_ttc_income, 'MT')).'
'.$langs->trans("Outcome").''.price(price2num(-$total_ht_outcome, 'MT')).''.price(price2num(-$total_ttc_outcome, 'MT')).'
'.$langs->trans("Profit").''.price(price2num($total_ht, 'MT')).''.price(price2num($total_ttc, 'MT')).'