31if ($action ==
'up' && $permissiontoedit) {
35 $outputlangs = $langs;
38 $newlang =
GETPOST(
'lang_id',
'aZ09');
41 $newlang =
$object->thirdparty->default_lang;
43 if (!empty($newlang)) {
45 $outputlangs->setDefaultLang($newlang);
49 $object->generateDocument(
$object->model_pdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
52 header(
'Location: '.$_SERVER[
"PHP_SELF"].
'?id='.
$object->id.
'#'.
GETPOST(
'rowid'));
56if ($action ==
'down' && $permissiontoedit) {
60 $outputlangs = $langs;
63 $newlang =
GETPOST(
'lang_id',
'aZ09');
66 $newlang =
$object->thirdparty->default_lang;
68 if (!empty($newlang)) {
70 $outputlangs->setDefaultLang($newlang);
73 $object->generateDocument(
$object->model_pdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
76 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 dolibarr global constant string value.