preselect project when warehouse created from there

This commit is contained in:
altairis-noe 2021-04-15 10:31:18 +02:00
parent 3fe0eb54c7
commit 2e340c61cc
2 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ $langs->loadLangs(array('products', 'stocks', 'companies', 'categories'));
$action = GETPOST('action', 'aZ09');
$cancel = GETPOST('cancel', 'alpha');
$confirm = GETPOST('confirm');
$projectid = GETPOST('projectid', 'int');
$id = GETPOST('id', 'int');
$ref = GETPOST('ref', 'alpha');

View File

@ -367,7 +367,7 @@ $listofreferent = array(
'class'=>'Entrepot',
'table'=>'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',
'buttonnew'=>'AddWarehouse',
'project_field'=>'fk_project',