Fixing style errors.
This commit is contained in:
parent
cf9c9ec882
commit
3cc65989c1
@ -1023,8 +1023,7 @@ if ($action == 'create') {
|
|||||||
|
|
||||||
$alreadyQtyBatchSetted = $alreadyQtySetted = array();
|
$alreadyQtyBatchSetted = $alreadyQtySetted = array();
|
||||||
|
|
||||||
if ($numAsked)
|
if ($numAsked) {
|
||||||
{
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td class="center">'.$langs->trans("QtyOrdered").'</td>';
|
print '<td class="center">'.$langs->trans("QtyOrdered").'</td>';
|
||||||
@ -1318,7 +1317,6 @@ if ($action == 'create') {
|
|||||||
}
|
}
|
||||||
$tmpwarehouseObject = new Entrepot($db);
|
$tmpwarehouseObject = new Entrepot($db);
|
||||||
foreach ($product->stock_warehouse as $warehouse_id => $stock_warehouse) { // $stock_warehouse is product_stock
|
foreach ($product->stock_warehouse as $warehouse_id => $stock_warehouse) { // $stock_warehouse is product_stock
|
||||||
|
|
||||||
if (!empty($warehousePicking) && !in_array($warehouse_id, $warehousePicking)) {
|
if (!empty($warehousePicking) && !in_array($warehouse_id, $warehousePicking)) {
|
||||||
// if a warehouse was selected by user, picking is limited to this warehouse and his children
|
// if a warehouse was selected by user, picking is limited to this warehouse and his children
|
||||||
continue;
|
continue;
|
||||||
@ -1335,8 +1333,7 @@ if ($action == 'create') {
|
|||||||
if ($line->product_type == Product::TYPE_PRODUCT || !empty($conf->global->STOCK_SUPPORTS_SERVICES)) {
|
if ($line->product_type == Product::TYPE_PRODUCT || !empty($conf->global->STOCK_SUPPORTS_SERVICES)) {
|
||||||
if (isset($alreadyQtySetted[$line->fk_product][intval($warehouse_id)])) {
|
if (isset($alreadyQtySetted[$line->fk_product][intval($warehouse_id)])) {
|
||||||
$deliverableQty = min($quantityToBeDelivered, $stock - $alreadyQtySetted[$line->fk_product][intval($warehouse_id)]);
|
$deliverableQty = min($quantityToBeDelivered, $stock - $alreadyQtySetted[$line->fk_product][intval($warehouse_id)]);
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
if (!isset($alreadyQtySetted[$line->fk_product])) {
|
if (!isset($alreadyQtySetted[$line->fk_product])) {
|
||||||
$alreadyQtySetted[$line->fk_product] = array();
|
$alreadyQtySetted[$line->fk_product] = array();
|
||||||
}
|
}
|
||||||
@ -1459,12 +1456,10 @@ if ($action == 'create') {
|
|||||||
$tmpwarehouseObject->fetch($warehouse_id);
|
$tmpwarehouseObject->fetch($warehouse_id);
|
||||||
if (($stock_warehouse->real > 0) && (count($stock_warehouse->detail_batch))) {
|
if (($stock_warehouse->real > 0) && (count($stock_warehouse->detail_batch))) {
|
||||||
foreach ($stock_warehouse->detail_batch as $dbatch) {
|
foreach ($stock_warehouse->detail_batch as $dbatch) {
|
||||||
|
|
||||||
$batchStock = + $dbatch->qty; // To get a numeric
|
$batchStock = + $dbatch->qty; // To get a numeric
|
||||||
if (isset($alreadyQtyBatchSetted[$line->fk_product][$dbatch->batch][intval($warehouse_id)])) {
|
if (isset($alreadyQtyBatchSetted[$line->fk_product][$dbatch->batch][intval($warehouse_id)])) {
|
||||||
$deliverableQty = min($quantityToBeDelivered, $batchStock - $alreadyQtyBatchSetted[$line->fk_product][$dbatch->batch][intval($warehouse_id)]);
|
$deliverableQty = min($quantityToBeDelivered, $batchStock - $alreadyQtyBatchSetted[$line->fk_product][$dbatch->batch][intval($warehouse_id)]);
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
if (!isset($alreadyQtyBatchSetted[$line->fk_product])) {
|
if (!isset($alreadyQtyBatchSetted[$line->fk_product])) {
|
||||||
$alreadyQtyBatchSetted[$line->fk_product] = array();
|
$alreadyQtyBatchSetted[$line->fk_product] = array();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user