Merge pull request #23589 from BB2A/Fix-pos-total-qty
Fix - pos total qty in order list det
This commit is contained in:
commit
d4d7a7cc1d
@ -1531,10 +1531,7 @@ if ($resql) {
|
|||||||
}
|
}
|
||||||
// Product QtyOrdered
|
// Product QtyOrdered
|
||||||
if (!empty($arrayfields['cdet.qty']['checked'])) {
|
if (!empty($arrayfields['cdet.qty']['checked'])) {
|
||||||
print '<td class="nowrap tdoverflowmax200">'.$obj->qty.'</td>';
|
print '<td class="nowrap right">'.$obj->qty.'</td>';
|
||||||
if (!$i) {
|
|
||||||
$totalarray['pos'][$totalarray['nbfield']] = 'cdet.qty';
|
|
||||||
}
|
|
||||||
if (isset($totalarray['val']['cdet.qty'])) {
|
if (isset($totalarray['val']['cdet.qty'])) {
|
||||||
$totalarray['val']['cdet.qty'] += $obj->qty;
|
$totalarray['val']['cdet.qty'] += $obj->qty;
|
||||||
} else {
|
} else {
|
||||||
@ -1543,6 +1540,9 @@ if ($resql) {
|
|||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
|
if (!$i) {
|
||||||
|
$totalarray['pos'][$totalarray['nbfield']] = 'cdet.qty';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ref
|
// Ref
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user