Fix bad td balance
This commit is contained in:
parent
39ef32326f
commit
060f7bf67c
@ -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"> </td>';
|
||||
print '<td class="liste_total right">'.price(price2num($totalvaluesell, 'MT')).'</td>';
|
||||
}
|
||||
print '<td class="liste_total"> </td>';
|
||||
print '<td class="liste_total"> </td>';
|
||||
print '<td class="liste_total"> </td>';
|
||||
|
||||
if ($user->rights->stock->mouvement->creer) {
|
||||
print '<td class="liste_total"> </td>';
|
||||
}
|
||||
|
||||
if ($user->rights->stock->creer) {
|
||||
print '<td class="liste_total"> </td>';
|
||||
}
|
||||
|
||||
print '</tr>';
|
||||
} else {
|
||||
dol_print_error($db);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user