Fixing style errors.
This commit is contained in:
parent
7b88f1da3f
commit
85372a7083
@ -165,11 +165,11 @@ function ordersupplier_prepare_head($object)
|
||||
$lines = $object->fetch_lines();
|
||||
$dispachedLines = $object->getDispachedLines(1);
|
||||
$sumQtyAllreadyDispatched = 0;
|
||||
for ($line = 0 ; $line < count($dispachedLines) ; $line++) {
|
||||
for ($line = 0 ; $line < count($dispachedLines); $line++) {
|
||||
$sumQtyAllreadyDispatched = $sumQtyAllreadyDispatched + $dispachedLines[$line]['qty'];
|
||||
}
|
||||
$sumQtyOrdered = 0;
|
||||
for ($line = 0 ; $line < count($object->lines) ; $line++) {
|
||||
for ($line = 0 ; $line < count($object->lines); $line++) {
|
||||
$sumQtyOrdered = $sumQtyOrdered + $object->lines[$line]->qty;
|
||||
}
|
||||
$head[$h][1] .= '<span class="badge marginleftonlyshort">'.$sumQtyAllreadyDispatched.' / '.$sumQtyOrdered.'</span>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user