Start debug inventory
This commit is contained in:
parent
4993a43025
commit
b57bf6460b
@ -204,7 +204,7 @@ tms timestamp,
|
|||||||
fk_inventory integer DEFAULT 0,
|
fk_inventory integer DEFAULT 0,
|
||||||
fk_warehouse integer DEFAULT 0,
|
fk_warehouse integer DEFAULT 0,
|
||||||
fk_product integer DEFAULT 0,
|
fk_product integer DEFAULT 0,
|
||||||
entity integer DEFAULT 0,
|
batch varchar(30) DEFAULT NULL,
|
||||||
qty_view double DEFAULT 0,
|
qty_view double DEFAULT 0,
|
||||||
qty_stock double DEFAULT 0,
|
qty_stock double DEFAULT 0,
|
||||||
qty_regulated double DEFAULT 0,
|
qty_regulated double DEFAULT 0,
|
||||||
|
|||||||
@ -25,7 +25,7 @@ tms timestamp,
|
|||||||
fk_inventory integer DEFAULT 0,
|
fk_inventory integer DEFAULT 0,
|
||||||
fk_warehouse integer DEFAULT 0,
|
fk_warehouse integer DEFAULT 0,
|
||||||
fk_product integer DEFAULT 0,
|
fk_product integer DEFAULT 0,
|
||||||
entity integer DEFAULT 0,
|
batch varchar(30) DEFAULT NULL, -- Lot or serial number
|
||||||
qty_view double DEFAULT 0,
|
qty_view double DEFAULT 0,
|
||||||
qty_stock double DEFAULT 0,
|
qty_stock double DEFAULT 0,
|
||||||
qty_regulated double DEFAULT 0,
|
qty_regulated double DEFAULT 0,
|
||||||
|
|||||||
@ -146,12 +146,13 @@ if (empty($reshook))
|
|||||||
if ($object->errors)
|
if ($object->errors)
|
||||||
{
|
{
|
||||||
setEventMessage($object->errors, 'errors');
|
setEventMessage($object->errors, 'errors');
|
||||||
card( $object, 'edit');
|
$action = 'edit';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$object->udpate($user);
|
$object->udpate($user);
|
||||||
header('Location: '.dol_buildpath('/product/inventory/card.php?id='.$object->getId().'&action=view', 1));
|
header('Location: '.dol_buildpath('/product/inventory/card.php?id='.$object->getId().'&action=view', 1));
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -167,12 +168,10 @@ if (empty($reshook))
|
|||||||
$object->status = 1;
|
$object->status = 1;
|
||||||
$object->update($user);
|
$object->update($user);
|
||||||
|
|
||||||
card( $object, 'view');
|
$action='view';
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
card( $object, 'view');
|
$action='view';
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -186,7 +185,7 @@ if (empty($reshook))
|
|||||||
|
|
||||||
$object->changePMP($user);
|
$object->changePMP($user);
|
||||||
|
|
||||||
card( $object, 'view');
|
$action='view';
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -238,7 +237,7 @@ if (empty($reshook))
|
|||||||
$object->sortDet();
|
$object->sortDet();
|
||||||
}
|
}
|
||||||
|
|
||||||
card( $object, 'edit');
|
$action='edit';
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -257,7 +256,7 @@ if (empty($reshook))
|
|||||||
$object = new Inventory($db);
|
$object = new Inventory($db);
|
||||||
$object->fetch( $id);
|
$object->fetch( $id);
|
||||||
|
|
||||||
card($object, 'edit');
|
$action='edit';
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'confirm_flush':
|
case 'confirm_flush':
|
||||||
@ -273,14 +272,12 @@ if (empty($reshook))
|
|||||||
|
|
||||||
setEventMessage($langs->trans('InventoryFlushed'));
|
setEventMessage($langs->trans('InventoryFlushed'));
|
||||||
|
|
||||||
card( $object, 'edit');
|
$action='edit';
|
||||||
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'confirm_delete':
|
case 'confirm_delete':
|
||||||
if (!$user->rights->stock->supprimer) accessforbidden();
|
if (!$user->rights->stock->supprimer) accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
$id = GETPOST('id');
|
$id = GETPOST('id');
|
||||||
|
|
||||||
$object = new Inventory($db);
|
$object = new Inventory($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user