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)) {
56 $upload_dir = $conf->stocktransfer->multidir_output[
$object->entity].
"/".
$object->id;
59$permissionnote = $user->hasRight(
'stocktransfer',
'stocktransfer',
'write');
60$permissiontoadd = $user->hasRight(
'stocktransfer',
'stocktransfer',
'write');
68include DOL_DOCUMENT_ROOT.
'/core/actions_setnotes.inc.php';
79llxHeader(
'', $langs->trans(
'ModuleStockTransferName'), $help_url,
'', 0, 0,
'',
'',
'',
'mod-product page-stock-stocktransfer_stocktransfer_note');
81if ($id > 0 || !empty($ref)) {
90 $linkback =
'<a href="'.dol_buildpath(
'/stocktransfer/stocktransfer_list.php', 1).
'?restore_lastsearch_values=1'.(!empty($socid) ?
'&socid='.$socid :
'').
'">'.$langs->trans(
"BackToList").
'</a>';
92 $morehtmlref =
'<div class="refidno">';
130 $morehtmlref .=
'</div>';
133 dol_banner_tab($object,
'ref', $linkback, 1,
'ref',
'ref', $morehtmlref);
136 print
'<div class="fichecenter">';
137 print
'<div class="underbanner clearboth"></div>';
140 $cssclass =
"titlefield";
141 include DOL_DOCUMENT_ROOT.
'/core/tpl/notes.tpl.php';
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
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.