34require
'../../main.inc.php';
35require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
36require_once DOL_DOCUMENT_ROOT.
'/core/lib/accounting.lib.php';
37require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
38require_once DOL_DOCUMENT_ROOT.
'/accountancy/class/accountancyexport.class.php';
49$langs->loadLangs(array(
"compta",
"bills",
"admin",
"accountancy",
"other"));
52if (!$user->hasRight(
'accounting',
'chartofaccount')) {
56$action =
GETPOST(
'action',
'aZ09');
58$nbletter =
GETPOSTINT(
'ACCOUNTING_LETTERING_NBLETTERS');
62 'ACCOUNTING_LENGTH_GACCOUNT',
63 'ACCOUNTING_LENGTH_AACCOUNT',
67 'ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER',
68 'ACCOUNTING_DATE_START_BINDING',
69 'ACCOUNTING_LABEL_OPERATION_ON_TRANSFER'
74 'ACCOUNTING_EXPORT_PREFIX_SPEC',
78$configuration = $accountancyexport->getTypeConfig();
80$listparam = $configuration[
'param'];
81$listformat = $configuration[
'format'];
82$listcr = $configuration[
'cr'];
86 'label' =>
'ACCOUNTING_EXPORT_FORMAT',
87 'param' => $listformat,
90 'label' =>
'ACCOUNTING_EXPORT_SEPARATORCSV',
94 'label' =>
'ACCOUNTING_EXPORT_ENDLINE',
98 'label' =>
'ACCOUNTING_EXPORT_DATE',
110if (in_array($action, array(
'setBANK_DISABLE_DIRECT_INPUT',
'setACCOUNTANCY_ER_DATE_RECORD',
'setACCOUNTANCY_COMBO_FOR_AUX',
'setACCOUNTING_MANAGE_ZERO',
'setACCOUNTING_BANK_CONCILIATED'))) {
111 $constname = preg_replace(
'/^set/',
'', $action);
125if ($action ==
'update') {
129 foreach ($list as $constname) {
130 $constvalue =
GETPOST($constname,
'alpha');
140 foreach ($list_binding as $constname) {
141 $constvalue =
GETPOST($constname,
'alpha');
143 if ($constname ==
'ACCOUNTING_DATE_START_BINDING') {
153 if (GETPOSTISSET(
'ACCOUNTING_LETTERING_NBLETTERS')) {
160 $modelcsv =
GETPOSTINT(
'ACCOUNTING_EXPORT_MODELCSV');
162 if (!empty($modelcsv)) {
173 foreach ($main_option as $constname) {
174 $constvalue =
GETPOST($constname,
'alpha');
181 foreach ($listparam[$modelcsv] as $key => $value) {
184 if (strpos($constante,
'ACCOUNTING') !==
false) {
185 $constvalue =
GETPOST($key,
'alpha');
194 $configuration = $accountancyexport->getTypeConfig();
195 $listparam = $configuration[
'param'];
206if ($action ==
'setmanagezero') {
220if ($action ==
'setenabledraftexport') {
222 $res =
dolibarr_set_const($db,
"ACCOUNTING_ENABLE_EXPORT_DRAFT_JOURNAL", $setenabledraftexport,
'yesno', 0,
'',
$conf->entity);
234if ($action ==
'setenablesubsidiarylist') {
235 $setenablesubsidiarylist =
GETPOSTINT(
'value');
236 $res =
dolibarr_set_const($db,
"ACCOUNTANCY_COMBO_FOR_AUX", $setenablesubsidiarylist,
'yesno', 0,
'',
$conf->entity);
248if ($action ==
'setdisablebindingonsales') {
249 $setdisablebindingonsales =
GETPOSTINT(
'value');
250 $res =
dolibarr_set_const($db,
"ACCOUNTING_DISABLE_BINDING_ON_SALES", $setdisablebindingonsales,
'yesno', 0,
'',
$conf->entity);
262if ($action ==
'setdisablebindingonpurchases') {
263 $setdisablebindingonpurchases =
GETPOSTINT(
'value');
264 $res =
dolibarr_set_const($db,
"ACCOUNTING_DISABLE_BINDING_ON_PURCHASES", $setdisablebindingonpurchases,
'yesno', 0,
'',
$conf->entity);
276if ($action ==
'setdisablebindingonexpensereports') {
277 $setdisablebindingonexpensereports =
GETPOSTINT(
'value');
278 $res =
dolibarr_set_const($db,
"ACCOUNTING_DISABLE_BINDING_ON_EXPENSEREPORTS", $setdisablebindingonexpensereports,
'yesno', 0,
'',
$conf->entity);
290if ($action ==
'setenablelettering') {
292 $res =
dolibarr_set_const($db,
"ACCOUNTING_ENABLE_LETTERING", $setenablelettering,
'yesno', 0,
'',
$conf->entity);
304if ($action ==
'setenableautolettering') {
305 $setenableautolettering =
GETPOSTINT(
'value');
306 $res =
dolibarr_set_const($db,
"ACCOUNTING_ENABLE_AUTOLETTERING", $setenableautolettering,
'yesno', 0,
'',
$conf->entity);
318if ($action ==
'setenablevatreversecharge') {
319 $setenablevatreversecharge =
GETPOSTINT(
'value');
320 $res =
dolibarr_set_const($db,
"ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE", $setenablevatreversecharge,
'yesno', 0,
'',
$conf->entity);
337$form =
new Form($db);
339$title = $langs->trans(
'ConfigAccountingExpert');
340$help_url =
'EN:Module_Double_Entry_Accounting#Setup|FR:Module_Comptabilité_en_Partie_Double#Configuration';
341llxHeader(
'', $title, $help_url,
'', 0, 0,
'',
'',
'',
'mod-accountancy page-admin_index');
352 print
'<div class="info">' . $langs->trans(
"ConstantIsOn",
"FACTURE_DEPOSITS_ARE_JUST_PAYMENTS") .
'</div>';
355 print
'<div class="info">' . $langs->trans(
"ConstantIsOn",
"FACTURE_SUPPLIER_DEPOSITS_ARE_JUST_PAYMENTS") .
'</div>';
358 print
'<div class="info">' . $langs->trans(
"ConstantIsOn",
"ACCOUNTANCY_USE_PRODUCT_ACCOUNT_ON_THIRDPARTY") .
'</div>';
361 print
'<div class="info">' . $langs->trans(
"ConstantIsOn",
"MAIN_COMPANY_PERENTITY_SHARED") .
'</div>';
364 print
'<div class="info">' . $langs->trans(
"ConstantIsOn",
"MAIN_PRODUCT_PERENTITY_SHARED") .
'</div>';
368print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
369print
'<input type="hidden" name="token" value="'.newToken().
'">';
370print
'<input type="hidden" name="action" value="update">';
371print
'<input type="hidden" name="page_y" value="">';
374print
'<div class="div-table-responsive-no-min">';
375print
'<table class="noborder centpercent">';
376print
'<tr class="liste_titre">';
377print
'<td colspan="2">'.$langs->trans(
'Options').
'</td>';
397print
'<tr class="oddeven">';
398print
'<td>'.$langs->trans(
"BANK_DISABLE_DIRECT_INPUT").
'</td>';
400 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setBANK_DISABLE_DIRECT_INPUT&value=0">';
401 print
img_picto($langs->trans(
"Activated"),
'switch_on');
404 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setBANK_DISABLE_DIRECT_INPUT&value=1">';
405 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
410print
'<tr class="oddeven">';
411print
'<td>'.$langs->trans(
"ACCOUNTANCY_COMBO_FOR_AUX");
412print
' - <span class="opacitymedium">'.$langs->trans(
"NotRecommended").
'</span>';
416 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setACCOUNTANCY_COMBO_FOR_AUX&value=0">';
417 print
img_picto($langs->trans(
"Activated").
' - '.$langs->trans(
"NotRecommended"),
'switch_on',
'class="warning"');
420 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setACCOUNTANCY_COMBO_FOR_AUX&value=1">';
421 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
426print
'<tr class="oddeven">';
427print
'<td>'.$langs->trans(
"ACCOUNTING_MANAGE_ZERO").
'</td>';
429 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setACCOUNTING_MANAGE_ZERO&value=0">';
430 print
img_picto($langs->trans(
"Activated"),
'switch_on');
433 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setACCOUNTING_MANAGE_ZERO&value=1">';
434 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
440foreach ($list as $key) {
441 print
'<tr class="oddeven value">';
443 if (
getDolGlobalInt(
'ACCOUNTING_MANAGE_ZERO') && ($key ==
'ACCOUNTING_LENGTH_GACCOUNT' || $key ==
'ACCOUNTING_LENGTH_AACCOUNT')) {
448 $label = $langs->trans($key);
449 print
'<td>'.$label.
'</td>';
451 print
'<td class="right">';
452 print
'<input type="number" class="maxwidth50 right" id="'.$key.
'" name="'.$key.
'" value="'.
getDolGlobalString($key).
'">';
460print
'<div class="center"><input type="submit" class="button reposition" value="'.dol_escape_htmltag($langs->trans(
'Save')).
'" name="button"></div>';
467print
'<div class="div-table-responsive-no-min">';
468print
'<table class="noborder centpercent">';
469print
'<tr class="liste_titre">';
470print
'<td colspan="2">'.$langs->trans(
'BindingOptions').
'</td>';
474foreach ($list_binding as $key) {
475 print
'<tr class="oddeven value">';
478 $label = $langs->trans($key);
479 print
'<td>'.$label.
'</td>';
481 print
'<td class="right minwidth75imp parentonrightofpage">';
482 if ($key ==
'ACCOUNTING_DATE_START_BINDING') {
484 } elseif ($key ==
'ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER') {
485 $array = array(0=>$langs->trans(
"PreviousMonth"), 1=>$langs->trans(
"CurrentMonth"), 2=>$langs->trans(
"Fiscalyear"));
486 print $form->selectarray($key, $array,
getDolGlobalInt(
'ACCOUNTING_DEFAULT_PERIOD_ON_TRANSFER', 0), 0, 0, 0,
'', 0, 0, 0,
'',
'onrightofpage width200');
487 } elseif ($key ==
'ACCOUNTING_LABEL_OPERATION_ON_TRANSFER') {
489 0=>$langs->trans(
"ThirdPartyName") .
' - ' . $langs->trans(
"NumPiece") .
' - ' . $langs->trans(
"LabelAccount"),
490 1=>$langs->trans(
"ThirdPartyName") .
' - ' . $langs->trans(
"NumPiece"),
491 2=>$langs->trans(
"ThirdPartyName")
493 print $form->selectarray($key, $array,
getDolGlobalInt(
'ACCOUNTING_LABEL_OPERATION_ON_TRANSFER', 0), 0, 0, 0,
'', 0, 0, 0,
'',
'onrightofpage width200');
495 print
'<input type="text" class="maxwidth100" id="'.$key.
'" name="'.$key.
'" value="'.
getDolGlobalString($key).
'">';
502print
'<tr class="oddeven">';
503print
'<td>'.$langs->trans(
"ACCOUNTING_DISABLE_BINDING_ON_SALES").
'</td>';
505 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setdisablebindingonsales&value=0">';
506 print
img_picto($langs->trans(
"Activated"),
'switch_on',
'', 0, 0, 0,
'',
'warning');
509 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setdisablebindingonsales&value=1">';
510 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
515print
'<tr class="oddeven">';
516print
'<td>'.$langs->trans(
"ACCOUNTING_DISABLE_BINDING_ON_PURCHASES").
'</td>';
518 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setdisablebindingonpurchases&value=0">';
519 print
img_picto($langs->trans(
"Activated"),
'switch_on',
'', 0, 0, 0,
'',
'warning');
522 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setdisablebindingonpurchases&value=1">';
523 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
528print
'<tr class="oddeven">';
529print
'<td>'.$langs->trans(
"ACCOUNTING_DISABLE_BINDING_ON_EXPENSEREPORTS").
'</td>';
531 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setdisablebindingonexpensereports&value=0">';
532 print
img_picto($langs->trans(
"Activated"),
'switch_on',
'', 0, 0, 0,
'',
'warning');
535 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setdisablebindingonexpensereports&value=1">';
536 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
542 print
'<tr class="oddeven">';
543 print
'<td>'.$langs->trans(
"ACCOUNTANCY_ER_DATE_RECORD").
'</td>';
545 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setACCOUNTANCY_ER_DATE_RECORD&value=0">';
546 print
img_picto($langs->trans(
"Activated"),
'switch_on');
549 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setACCOUNTANCY_ER_DATE_RECORD&value=1">';
550 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
556print
'<tr class="oddeven">';
557print
'<td>'.$langs->trans(
"ACCOUNTING_BANK_CONCILIATED").
'</td>';
559 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setACCOUNTING_BANK_CONCILIATED&value=1">';
560 print
img_picto($langs->trans(
"Activated"),
'switch_on');
563 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setACCOUNTING_BANK_CONCILIATED&value=2">';
564 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
572print
'<div class="center"><input type="submit" class="button reposition" value="'.dol_escape_htmltag($langs->trans(
'Save')).
'" name="button"></div>';
581print
'<div class="div-table-responsive-no-min">';
582print
'<table class="noborder centpercent">';
583print
'<tr class="liste_titre">';
584print
'<td colspan="2">' . $langs->trans(
'OptionsAdvanced') .
'</td>';
587print
'<tr class="oddeven">';
589print $form->textwithpicto($langs->trans(
"ACCOUNTING_ENABLE_LETTERING"), $langs->trans(
"ACCOUNTING_ENABLE_LETTERING_DESC", $langs->transnoentitiesnoconv(
"NumMvts")).
'<br>'.$langs->trans(
"EnablingThisFeatureIsNotNecessary")).
'</td>';
591 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setenablelettering&value=0">';
592 print
img_picto($langs->trans(
"Activated"),
'switch_on');
595 print
'<td class="right"><a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?token='.
newToken().
'&action=setenablelettering&value=1">';
596 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
603 print
'<tr class="oddeven">';
605 print $form->textwithpicto($langs->trans(
"ACCOUNTING_LETTERING_NBLETTERS"), $langs->trans(
"ACCOUNTING_LETTERING_NBLETTERS_DESC")) .
'</td>';
606 print
'<td class="right">';
608 if (empty($letter)) {
616 print
'<input class="flat right" name="ACCOUNTING_LETTERING_NBLETTERS" id="ACCOUNTING_LETTERING_NBLETTERS" value="' . $nbletter .
'" type="number" step="1" min="2" max="3" >' .
"\n";
620 print
'<tr class="oddeven">';
622 print $form->textwithpicto($langs->trans(
"ACCOUNTING_ENABLE_AUTOLETTERING"), $langs->trans(
"ACCOUNTING_ENABLE_AUTOLETTERING_DESC")) .
'</td>';
624 print
'<td class="right"><a class="reposition" href="' . $_SERVER[
'PHP_SELF'] .
'?token=' .
newToken() .
'&action=setenableautolettering&value=0">';
625 print
img_picto($langs->trans(
"Activated"),
'switch_on');
628 print
'<td class="right"><a class="reposition" href="' . $_SERVER[
'PHP_SELF'] .
'?token=' .
newToken() .
'&action=setenableautolettering&value=1">';
629 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
635print
'<tr class="oddeven">';
637print $form->textwithpicto($langs->trans(
"ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE"), $langs->trans(
"ACCOUNTING_FORCE_ENABLE_VAT_REVERSE_CHARGE_DESC", $langs->transnoentities(
"MenuDefaultAccounts"))).
'</td>';
639 print
'<td class="right"><a class="reposition" href="' . $_SERVER[
'PHP_SELF'] .
'?token=' .
newToken() .
'&action=setenablevatreversecharge&value=0">';
640 print
img_picto($langs->trans(
"Activated"),
'switch_on');
643 print
'<td class="right"><a class="reposition" href="' . $_SERVER[
'PHP_SELF'] .
'?token=' .
newToken() .
'&action=setenablevatreversecharge&value=1">';
644 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
653print
'<div class="center"><input type="submit" class="button button-edit reposition" name="button" value="'.$langs->trans(
'Save').
'"></div>';
660print
"\n".
'<script type="text/javascript">'.
"\n";
661print
'jQuery(document).ready(function () {'.
"\n";
662print
' function initfields()'.
"\n";
664foreach ($listparam as $key => $param) {
665 print
' if (jQuery("#ACCOUNTING_EXPORT_MODELCSV").val()=="'.$key.
'")'.
"\n";
667 print
' //console.log("'.$param[
'label'].
'");'.
"\n";
668 if (empty($param[
'ACCOUNTING_EXPORT_FORMAT'])) {
669 print
' jQuery("#ACCOUNTING_EXPORT_FORMAT").val("'.getDolGlobalString(
'ACCOUNTING_EXPORT_FORMAT').
'");'.
"\n";
670 print
' jQuery("#ACCOUNTING_EXPORT_FORMAT").prop("disabled", true);'.
"\n";
672 print
' jQuery("#ACCOUNTING_EXPORT_FORMAT").val("'.$param[
'ACCOUNTING_EXPORT_FORMAT'].
'");'.
"\n";
673 print
' jQuery("#ACCOUNTING_EXPORT_FORMAT").removeAttr("disabled");'.
"\n";
675 if (empty($param[
'ACCOUNTING_EXPORT_SEPARATORCSV'])) {
676 print
' jQuery("#ACCOUNTING_EXPORT_SEPARATORCSV").val("");'.
"\n";
677 print
' jQuery("#ACCOUNTING_EXPORT_SEPARATORCSV").prop("disabled", true);'.
"\n";
679 print
' jQuery("#ACCOUNTING_EXPORT_SEPARATORCSV").val("'.getDolGlobalString(
'ACCOUNTING_EXPORT_SEPARATORCSV').
'");'.
"\n";
680 print
' jQuery("#ACCOUNTING_EXPORT_SEPARATORCSV").removeAttr("disabled");'.
"\n";
682 if (empty($param[
'ACCOUNTING_EXPORT_ENDLINE'])) {
683 print
' jQuery("#ACCOUNTING_EXPORT_ENDLINE").prop("disabled", true);'.
"\n";
685 print
' jQuery("#ACCOUNTING_EXPORT_ENDLINE").removeAttr("disabled");'.
"\n";
687 if (empty($param[
'ACCOUNTING_EXPORT_DATE'])) {
688 print
' jQuery("#ACCOUNTING_EXPORT_DATE").val("");'.
"\n";
689 print
' jQuery("#ACCOUNTING_EXPORT_DATE").prop("disabled", true);'.
"\n";
691 print
' jQuery("#ACCOUNTING_EXPORT_DATE").val("'.getDolGlobalString(
'ACCOUNTING_EXPORT_DATE').
'");'.
"\n";
692 print
' jQuery("#ACCOUNTING_EXPORT_DATE").removeAttr("disabled");'.
"\n";
697print
' initfields();'.
"\n";
698print
' jQuery("#ACCOUNTING_EXPORT_MODELCSV").change(function() {'.
"\n";
699print
' initfields();'.
"\n";
702print
'</script>'.
"\n";
706print
'<table class="noborder centpercent">';
707print
'<tr class="liste_titre">';
708print
'<td colspan="2">'.$langs->trans(
'ExportOptions').
'</td>';
711$num = count($main_option);
713 foreach ($main_option as $key) {
714 print
'<tr class="oddeven value">';
717 $label = $langs->trans($key);
718 print
'<td>'.dol_escape_htmltag($label).
'</td>';
722 print
'<input type="text" size="20" id="'.$key.
'" name="'.$key.
'" value="'.
getDolGlobalString($key).
'">';
727print
'<tr class="oddeven">';
728print
'<td>'.$langs->trans(
"Selectmodelcsv").
'</td>';
729if (!
$conf->use_javascript_ajax) {
730 print
'<td class="nowrap">';
731 print $langs->trans(
"NotAvailableWhenAjaxDisabled");
735 $listofexporttemplates = $accountancyexport->getType(1);
736 print $form->selectarray(
"ACCOUNTING_EXPORT_MODELCSV", $listofexporttemplates,
getDolGlobalString(
'ACCOUNTING_EXPORT_MODELCSV'), 0, 0, 0,
'', 0, 0, 0,
'',
'', 1);
742$num2 = count($model_option);
744 foreach ($model_option as $key) {
745 print
'<tr class="oddeven value">';
748 $label = $key[
'label'];
749 print
'<td>'.$langs->trans($label).
'</td>';
753 if (is_array($key[
'param'])) {
756 print
'<input type="text" size="20" id="'.$label.
'" name="'.$key[
'label'].
'" value="'.
getDolGlobalString($label).
'">';
765print
'<div class="center"><input type="submit" class="button reposition" value="'.dol_escape_htmltag($langs->trans(
'Save')).
'" name="button"></div>';
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
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.
Manage the different format accountancy export.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed information (by default a local PHP server timestamp) Rep...
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
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...
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.