fix precommit
This commit is contained in:
parent
ae56619253
commit
f39dd30a7f
@ -52,7 +52,7 @@ $fk_inventory = GETPOST("fk_inventory", "int");
|
|||||||
$fk_product = GETPOST("fk_product", "int");
|
$fk_product = GETPOST("fk_product", "int");
|
||||||
$reelqty = GETPOST("reelqty", "int");
|
$reelqty = GETPOST("reelqty", "int");
|
||||||
$qtyview = GETPOST("Qty", "int");
|
$qtyview = GETPOST("Qty", "int");
|
||||||
$batch = GETPOST("batch","int");
|
$batch = GETPOST("batch", "int");
|
||||||
|
|
||||||
$warehousefound = 0;
|
$warehousefound = 0;
|
||||||
$warehouseid = 0;
|
$warehouseid = 0;
|
||||||
@ -71,7 +71,7 @@ if ($action == "existbarcode" && !empty($barcode)) {
|
|||||||
for ($i=0; $i < $nbline; $i++) {
|
for ($i=0; $i < $nbline; $i++) {
|
||||||
$object = $db->fetch_object($result);
|
$object = $db->fetch_object($result);
|
||||||
if ($barcode == $object->barcode) {
|
if ($barcode == $object->barcode) {
|
||||||
$warehouse->fetch(0,$product["Warehouse"]);
|
$warehouse->fetch(0, $product["Warehouse"]);
|
||||||
if (!empty($object->fk_entrepot) && $warehouse->id == $object->fk_entrepot) {
|
if (!empty($object->fk_entrepot) && $warehouse->id == $object->fk_entrepot) {
|
||||||
$warehousefound++;
|
$warehousefound++;
|
||||||
$warehouseid = $object->fk_entrepot;
|
$warehouseid = $object->fk_entrepot;
|
||||||
@ -112,10 +112,10 @@ if ($action == "addnewlineproduct") {
|
|||||||
$result = $inventoryline->create($user);
|
$result = $inventoryline->create($user);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
$response = array('status'=>'success','message'=>'Success on creating line');
|
$response = array('status'=>'success','message'=>'Success on creating line');
|
||||||
}else {
|
} else {
|
||||||
$response = array('status'=>'error','errorcode'=>'ErrorCreation','message'=>"Error on line creation");
|
$response = array('status'=>'error','errorcode'=>'ErrorCreation','message'=>"Error on line creation");
|
||||||
}
|
}
|
||||||
}else {
|
} else {
|
||||||
$response = array('status'=>'error','errorcode'=>'NoIdForInventory','message'=>"No id for inventory");
|
$response = array('status'=>'error','errorcode'=>'NoIdForInventory','message'=>"No id for inventory");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user