Update mo_production.php
This commit is contained in:
parent
a3cf76cfd7
commit
6301139027
@ -39,7 +39,7 @@ dol_include_once('/mrp/lib/mrp_mo.lib.php');
|
|||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array("mrp", "stocks", "other", "product", "productbatch"));
|
$langs->loadLangs(array("mrp", "stocks", "other", "product", "productbatch"));
|
||||||
$newToken = function_exists('newToken') ? newToken() : $_SESSION['newtoken'];
|
|
||||||
// Get parameters
|
// Get parameters
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
$ref = GETPOST('ref', 'alpha');
|
$ref = GETPOST('ref', 'alpha');
|
||||||
@ -431,6 +431,8 @@ $tmpstockmovement = new MouvementStock($db);
|
|||||||
$help_url = 'EN:Module_Manufacturing_Orders|FR:Module_Ordres_de_Fabrication';
|
$help_url = 'EN:Module_Manufacturing_Orders|FR:Module_Ordres_de_Fabrication';
|
||||||
llxHeader('', $langs->trans('Mo'), $help_url, '', 0, 0, array('/mrp/js/lib_dispatch.js.php'));
|
llxHeader('', $langs->trans('Mo'), $help_url, '', 0, 0, array('/mrp/js/lib_dispatch.js.php'));
|
||||||
|
|
||||||
|
$newToken = newToken();
|
||||||
|
|
||||||
// Part to show record
|
// Part to show record
|
||||||
if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'create'))) {
|
if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'create'))) {
|
||||||
$res = $object->fetch_thirdparty();
|
$res = $object->fetch_thirdparty();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user