2
0
forked from Wavyzz/dolibarr

Update balance.php

adds conditions to correctly manage column alignment following the MAIN_CHECKBOX_LEFT_COLUMN option
This commit is contained in:
Greg Chanton
2024-01-15 14:53:25 +01:00
committed by GitHub
parent d9acb22f5d
commit 9e3c6f1dd6

View File

@@ -525,6 +525,9 @@ if ($action != 'export_csv') {
if ($displayed_account != "") {
print '<tr class="liste_total">';
print '<td class="right">'.$langs->trans("SubTotal").':</td>';
if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
print '<td></td>';
}
if (getDolGlobalString('ACCOUNTANCY_SHOW_OPENING_BALANCE')) {
print '<td class="right nowraponall amount">'.price($sous_total_opening_balance).'</td>';
}
@@ -535,7 +538,9 @@ if ($action != 'export_csv') {
} else {
print '<td class="right nowraponall amount">'.price(price2num($sous_total_debit - $sous_total_credit)).'</td>';
}
print "<td></td>\n";
if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
print "<td></td>\n";
}
print '</tr>';
}