30dol_include_once(
'/recruitment/core/modules/recruitment/modules_recruitmentjobposition.php');
42 public $version =
'dolibarr';
52 public $name =
'advanced';
61 public function info($langs)
65 $langs->load(
"bills");
67 $form =
new Form($db);
69 $texte = $langs->trans(
'GenericNumRefModelDesc').
"<br>\n";
70 $texte .=
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
71 $texte .=
'<input type="hidden" name="token" value="'.newToken().
'">';
72 $texte .=
'<input type="hidden" name="action" value="updateMask">';
73 $texte .=
'<input type="hidden" name="maskconstjob" value="RECRUITMENT_RECRUITMENTJOBPOSITION_ADVANCED_MASK">';
74 $texte .=
'<table class="nobordernopadding centpercent">';
76 $tooltip = $langs->trans(
"GenericMaskCodes", $langs->transnoentities(
"RecruitmentJobPosition"), $langs->transnoentities(
"RecruitmentJobPosition"));
77 $tooltip .= $langs->trans(
"GenericMaskCodes2");
78 $tooltip .= $langs->trans(
"GenericMaskCodes3");
79 $tooltip .= $langs->trans(
"GenericMaskCodes4a", $langs->transnoentities(
"RecruitmentJobPosition"), $langs->transnoentities(
"RecruitmentJobPosition"));
80 $tooltip .= $langs->trans(
"GenericMaskCodes5");
84 $texte .=
'<tr><td>'.$langs->trans(
"Mask").
':</td>';
85 $texte .=
'<td class="right">'.$form->textwithpicto(
'<input type="text" class="flat minwidth175" name="maskjob" value="'.
getDolGlobalString(
'RECRUITMENT_RECRUITMENTJOBPOSITION_ADVANCED_MASK').
'">', $tooltip, 1, 1).
'</td>';
87 $texte .=
'<td class="left" rowspan="2"> <input type="submit" class="button button-edit" name="Button"value="'.$langs->trans(
"Modify").
'"></td>';
104 global $langs, $mysoc;
106 $old_code_client = $mysoc->code_client;
107 $old_code_type = $mysoc->typent_code;
108 $mysoc->code_client =
'CCCCCCCCCC';
109 $mysoc->typent_code =
'TTTTTTTTTT';
111 $mysoc->code_client = $old_code_client;
112 $mysoc->typent_code = $old_code_type;
115 $numExample = $langs->trans(
'NotConfigured');
130 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
136 $this->error =
'NotConfigured';
142 $numFinal =
get_next_value($db, $mask,
'recruitment_recruitmentjobposition',
'ref',
'',
'', $date);
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Parent class to manage numbering of RecruitmentJobPosition.
Class to manage the Advanced numbering rule for Job position.
info($langs)
Returns the description of the numbering model.
getNextValue($object)
Return next free value.
getExample()
Return an example of numbering.
get_next_value($db, $mask, $table, $field, $where='', $objsoc='', $date='', $mode='next', $bentityon=true, $objuser=null, $forceentity=null)
Return last or next value for a mask (according to area we should not reset)
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.