This commit is contained in:
Laurent Destailleur 2023-03-31 00:39:46 +02:00
parent 3e599b1c63
commit ea77bf53fc

View File

@ -659,6 +659,9 @@ while ($i < $imaxinloop) {
print '<input id="cb'.$obj->rowid.'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.'"'.($selected ? ' checked="checked"' : '').'>';
}
print '</td>';
if (!$i) {
$totalarray['nbfield']++;
}
}
foreach ($warehouse->fields as $key => $val) {
if ($key == 'statut') {
@ -717,7 +720,7 @@ while ($i < $imaxinloop) {
// Stock qty
if (!empty($arrayfields["stockqty"]['checked'])) {
print '<td class="right">'.price2num($obj->stockqty, 5).'</td>';
print '<td class="right">'.price(price2num($obj->stockqty, 'MS')).'</td>';
if (!$i) {
$totalarray['nbfield']++;
}
@ -789,9 +792,9 @@ while ($i < $imaxinloop) {
print '<input id="cb'.$obj->rowid.'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$obj->rowid.'"'.($selected ? ' checked="checked"' : '').'>';
}
print '</td>';
}
if (!$i) {
$totalarray['nbfield']++;
if (!$i) {
$totalarray['nbfield']++;
}
}
print '</tr>'."\n";