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