FIX - $totalarray['nbfield']++;

This commit is contained in:
Anthony Berton 2022-10-26 16:02:25 +02:00
parent cb3680a91b
commit 0f842fdb3a

View File

@ -1480,6 +1480,9 @@ if ($resql) {
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']++;
}
}
// Détail commande
@ -2100,10 +2103,9 @@ if ($resql) {
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";
@ -2112,7 +2114,7 @@ if ($resql) {
$subtotal += $obj->total_ht;
$i++;
}
var_dump($totalarray['nbfield']);
// Show total line
include DOL_DOCUMENT_ROOT.'/core/tpl/list_print_total.tpl.php';