33@phan-var-force bool $permissiontoedit
34@phan-var-force CommonObject $object
43if ($action ==
'up' && $permissiontoedit) {
47 $outputlangs = $langs;
50 $newlang =
GETPOST(
'lang_id',
'aZ09');
53 $newlang =
$object->thirdparty->default_lang;
55 if (!empty($newlang)) {
57 $outputlangs->setDefaultLang($newlang);
61 $object->generateDocument(
$object->model_pdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
64 header(
'Location: '.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'#'.
GETPOST(
'rowid'));
68if ($action ==
'down' && $permissiontoedit) {
72 $outputlangs = $langs;
75 $newlang =
GETPOST(
'lang_id',
'aZ09');
78 $newlang =
$object->thirdparty->default_lang;
80 if (!empty($newlang)) {
82 $outputlangs->setDefaultLang($newlang);
85 $object->generateDocument(
$object->model_pdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
88 header(
'Location: '.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'#'.
GETPOST(
'rowid'));
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Class to manage translations.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...