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:
@@ -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>';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user