mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fixing style errors.
This commit is contained in:
parent
7b88f1da3f
commit
85372a7083
|
|
@ -159,22 +159,22 @@ function ordersupplier_prepare_head($object)
|
|||
$langs->load("stocks");
|
||||
$head[$h][0] = DOL_URL_ROOT.'/fourn/commande/dispatch.php?id='.$object->id;
|
||||
$head[$h][1] = $langs->trans("OrderDispatch");
|
||||
|
||||
|
||||
//If dispach process running we add the number of item to dispatch into the head
|
||||
if ($object->statut == '3' OR $object->statut == '4' OR $object->statut == '5') {
|
||||
$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>';
|
||||
}
|
||||
|
||||
|
||||
$head[$h][2] = 'dispatch';
|
||||
$h++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user