Remove white lines
This commit is contained in:
parent
efb88292dd
commit
d8b5cd4bdf
@ -131,23 +131,18 @@ if ($action == 'addlimitstockwarehouse' && !empty($user->rights->produit->creer)
|
|||||||
|
|
||||||
$pse = new ProductStockEntrepot($db);
|
$pse = new ProductStockEntrepot($db);
|
||||||
if($pse->fetch(0, $id, GETPOST('fk_entrepot')) > 0) {
|
if($pse->fetch(0, $id, GETPOST('fk_entrepot')) > 0) {
|
||||||
|
|
||||||
// Update
|
// Update
|
||||||
$pse->seuil_stock_alerte = $seuil_stock_alerte;
|
$pse->seuil_stock_alerte = $seuil_stock_alerte;
|
||||||
$pse->desiredstock = $desiredstock;
|
$pse->desiredstock = $desiredstock;
|
||||||
if($pse->update($user) > 0) setEventMessage($langs->trans('ProductStockWarehouseUpdated'));
|
if($pse->update($user) > 0) setEventMessage($langs->trans('ProductStockWarehouseUpdated'));
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// Create
|
// Create
|
||||||
$pse->fk_entrepot = GETPOST('fk_entrepot');
|
$pse->fk_entrepot = GETPOST('fk_entrepot');
|
||||||
$pse->fk_product = $id;
|
$pse->fk_product = $id;
|
||||||
$pse->seuil_stock_alerte = GETPOST('seuil_stock_alerte');
|
$pse->seuil_stock_alerte = GETPOST('seuil_stock_alerte');
|
||||||
$pse->desiredstock = GETPOST('desiredstock');
|
$pse->desiredstock = GETPOST('desiredstock');
|
||||||
if($pse->create($user) > 0) setEventMessage($langs->trans('ProductStockWarehouseCreated'));
|
if($pse->create($user) > 0) setEventMessage($langs->trans('ProductStockWarehouseCreated'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?id=".$id);
|
header("Location: ".$_SERVER["PHP_SELF"]."?id=".$id);
|
||||||
@ -161,9 +156,7 @@ if($action == 'delete_productstockwarehouse' && !empty($user->rights->produit->c
|
|||||||
$pse = new ProductStockEntrepot($db);
|
$pse = new ProductStockEntrepot($db);
|
||||||
$pse->fetch(GETPOST('fk_productstockwarehouse','int'));
|
$pse->fetch(GETPOST('fk_productstockwarehouse','int'));
|
||||||
if($pse->delete($user) > 0) setEventMessage($langs->trans('ProductStockWarehouseDeleted'));
|
if($pse->delete($user) > 0) setEventMessage($langs->trans('ProductStockWarehouseDeleted'));
|
||||||
|
|
||||||
$action = '';
|
$action = '';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set stock limit
|
// Set stock limit
|
||||||
@ -916,7 +909,6 @@ if ($resql)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else dol_print_error($db);
|
else dol_print_error($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user