Fix bad td balance

This commit is contained in:
Laurent Destailleur 2022-11-05 15:37:59 +01:00
parent 39ef32326f
commit 060f7bf67c

View File

@ -783,6 +783,7 @@ if ($action == 'create') {
print $langs->trans("CorrectStock");
print "</a></td>";
}
if (!empty($conf->global->PRODUCT_USE_UNITS)) {
if ($i == 0) {
$units = $productstatic->fk_unit;
@ -790,11 +791,13 @@ if ($action == 'create') {
$sameunits = false;
}
}
print "</tr>";
$i++;
}
$db->free($resql);
// Total
print '<tr class="liste_total"><td class="liste_total" colspan="2">'.$langs->trans("Total").'</td>';
print '<td class="liste_total right">';
$valtoshow = price2num($totalunit, 'MS');
@ -812,9 +815,15 @@ if ($action == 'create') {
print '<td class="liste_total">&nbsp;</td>';
print '<td class="liste_total right">'.price(price2num($totalvaluesell, 'MT')).'</td>';
}
print '<td class="liste_total">&nbsp;</td>';
print '<td class="liste_total">&nbsp;</td>';
print '<td class="liste_total">&nbsp;</td>';
if ($user->rights->stock->mouvement->creer) {
print '<td class="liste_total">&nbsp;</td>';
}
if ($user->rights->stock->creer) {
print '<td class="liste_total">&nbsp;</td>';
}
print '</tr>';
} else {
dol_print_error($db);