26require
'../../../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.
'/product/stock/stocktransfer/class/stocktransfer.class.php';
28require_once DOL_DOCUMENT_ROOT.
'/product/stock/stocktransfer/lib/stocktransfer_stocktransfer.lib.php';
31$langs->loadLangs(array(
"stocks",
"companies"));
36$action =
GETPOST(
'action',
'alpha');
37$cancel =
GETPOST(
'cancel',
'aZ09');
38$backtopage =
GETPOST(
'backtopage',
'alpha');
43$diroutputmassaction = $conf->stocktransfer->dir_output.
'/temp/massgeneration/'.$user->id;
44$hookmanager->initHooks(array(
'stocktransfernote',
'globalcard'));
46$extrafields->fetch_name_optionals_label($object->table_element);
54include DOL_DOCUMENT_ROOT.
'/core/actions_fetchobject.inc.php';
55if ($id > 0 || !empty($ref)) $upload_dir = $conf->stocktransfer->multidir_output[$object->entity].
"/".$object->id;
57$permissionnote = $user->rights->stocktransfer->stocktransfer->write;
58$permissiontoadd = $user->rights->stocktransfer->stocktransfer->write;
66include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
77llxHeader(
'', $langs->trans(
'ModuleStockTransferName'), $help_url);
79if ($id > 0 || !empty($ref)) {
80 $object->fetch_thirdparty();
84 print
dol_get_fiche_head($head,
'note', $langs->trans(
"StockTransfer"), -1, $object->picto);
88 $linkback =
'<a href="'.dol_buildpath(
'/stocktransfer/stocktransfer_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
90 $morehtmlref =
'<div class="refidno">';
128 $morehtmlref .=
'</div>';
131 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
134 print
'<div class="fichecenter">';
135 print
'<div class="underbanner clearboth"></div>';
138 $cssclass =
"titlefield";
139 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $onlybanner=0, $morehtmlright='')
Show tab footer of a card.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
stocktransferPrepareHead($object)
Prepare array of tabs for StockTransfer.