preselect project when warehouse created from there
This commit is contained in:
parent
3fe0eb54c7
commit
2e340c61cc
@ -41,6 +41,7 @@ $langs->loadLangs(array('products', 'stocks', 'companies', 'categories'));
|
|||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
$cancel = GETPOST('cancel', 'alpha');
|
$cancel = GETPOST('cancel', 'alpha');
|
||||||
$confirm = GETPOST('confirm');
|
$confirm = GETPOST('confirm');
|
||||||
|
$projectid = GETPOST('projectid', 'int');
|
||||||
|
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
$ref = GETPOST('ref', 'alpha');
|
$ref = GETPOST('ref', 'alpha');
|
||||||
|
|||||||
@ -367,7 +367,7 @@ $listofreferent = array(
|
|||||||
'class'=>'Entrepot',
|
'class'=>'Entrepot',
|
||||||
'table'=>'entrepot',
|
'table'=>'entrepot',
|
||||||
'datefieldname'=>'date_entrepot',
|
'datefieldname'=>'date_entrepot',
|
||||||
'urlnew'=>DOL_URL_ROOT.'/product/stock/card.php?action=create&origin=project&originid='.$id,
|
'urlnew'=>DOL_URL_ROOT.'/product/stock/card.php?action=create&projectid='.$id,
|
||||||
'lang'=>'entrepot',
|
'lang'=>'entrepot',
|
||||||
'buttonnew'=>'AddWarehouse',
|
'buttonnew'=>'AddWarehouse',
|
||||||
'project_field'=>'fk_project',
|
'project_field'=>'fk_project',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user