29dol_include_once(
'/knowledgemanagement/core/modules/knowledgemanagement/modules_knowledgerecord.php');
41 public $version =
'dolibarr';
51 public $name =
'advanced';
63 $langs->load(
"bills");
65 $form =
new Form($db);
67 $texte = $langs->trans(
'GenericNumRefModelDesc').
"<br>\n";
68 $texte .=
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
69 $texte .=
'<input type="hidden" name="token" value="'.newToken().
'">';
70 $texte .=
'<input type="hidden" name="action" value="updateMask">';
71 $texte .=
'<input type="hidden" name="maskconst" value="KNOWLEDGEMANAGEMENT_KNOWLEDGERECORD_ADVANCED_MASK">';
72 $texte .=
'<table class="nobordernopadding" width="100%">';
74 $tooltip = $langs->trans(
"GenericMaskCodes", $langs->transnoentities(
"KnowledgeRecord"), $langs->transnoentities(
"KnowledgeRecord"));
75 $tooltip .= $langs->trans(
"GenericMaskCodes2");
76 $tooltip .= $langs->trans(
"GenericMaskCodes3");
77 $tooltip .= $langs->trans(
"GenericMaskCodes4a", $langs->transnoentities(
"KnowledgeRecord"), $langs->transnoentities(
"KnowledgeRecord"));
78 $tooltip .= $langs->trans(
"GenericMaskCodes5");
79 $tooltip .=
'<br>'.$langs->trans(
"GenericMaskCodes5b");
82 $texte .=
'<tr><td>'.$langs->trans(
"Mask").
':</td>';
83 $texte .=
'<td class="right">'.$form->textwithpicto(
'<input type="text" class="flat minwidth175" name="maskKnowledgeRecord" value="'.
getDolGlobalString(
'KNOWLEDGEMANAGEMENT_KNOWLEDGERECORD_ADVANCED_MASK').
'">', $tooltip, 1, 1).
'</td>';
85 $texte .=
'<td class="left" rowspan="2"> <input type="submit" class="button button-edit" name="Button"value="'.$langs->trans(
"Modify").
'"></td>';
118 $numExample = $langs->trans(
'NotConfigured');
133 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
139 $this->error =
'NotConfigured';
145 $numFinal =
get_next_value($db, $mask,
'knowledgemanagement_knowledgerecord',
'ref',
'',
null, $date);
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Class for KnowledgeRecord.
Parent class to manage numbering of KnowledgeRecord.
Class to manage customer Bom numbering rules advanced.
getNextValue($object)
Return next free value.
getExample()
Return an example of numbering.
info()
Returns the description of the numbering model.
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 dolibarr global constant string value.