Fix - pos total qty
This commit is contained in:
parent
4cf4da973c
commit
95b391ae0a
@ -1509,10 +1509,7 @@ if ($resql) {
|
||||
}
|
||||
// Product QtyOrdered
|
||||
if (!empty($arrayfields['cdet.qty']['checked'])) {
|
||||
print '<td class="nowrap tdoverflowmax200">'.$obj->qty.'</td>';
|
||||
if (!$i) {
|
||||
$totalarray['pos'][$totalarray['nbfield']] = 'cdet.qty';
|
||||
}
|
||||
print '<td class="nowrap right">'.$obj->qty.'</td>';
|
||||
if (isset($totalarray['val']['cdet.qty'])) {
|
||||
$totalarray['val']['cdet.qty'] += $obj->qty;
|
||||
} else {
|
||||
@ -1521,6 +1518,9 @@ if ($resql) {
|
||||
if (!$i) {
|
||||
$totalarray['nbfield']++;
|
||||
}
|
||||
if (!$i) {
|
||||
$totalarray['pos'][$totalarray['nbfield']] = 'cdet.qty';
|
||||
}
|
||||
}
|
||||
|
||||
// Ref
|
||||
|
||||
Loading…
Reference in New Issue
Block a user