Update mod_project_universal.php (#25462)

This commit is contained in:
UT from dolibit 2023-07-24 18:45:56 +02:00 committed by GitHub
parent 4e9da73eab
commit b1befd8bd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,16 +17,16 @@
*/
/**
* \file htdocs/core/modules/project/mod_project_universal.php
* \ingroup project
* \brief Fichier contenant la classe du modele de numerotation de reference de projet Universal
* \file htdocs/core/modules/project/mod_project_universal.php
* \ingroup project
* \brief File containing the Universal project reference numbering model class
*/
require_once DOL_DOCUMENT_ROOT.'/core/modules/project/modules_project.php';
/**
* Classe du modele de numerotation de reference de projet Universal
* Class to manage the numbering module Universal for project references
*/
class mod_project_universal extends ModeleNumRefProjects
{
@ -86,7 +86,7 @@ class mod_project_universal extends ModeleNumRefProjects
$tooltip .= $langs->trans("GenericMaskCodes4a", $langs->transnoentities("Project"), $langs->transnoentities("Project"));
$tooltip .= $langs->trans("GenericMaskCodes5");
// Parametrage du prefix
// Prefix settings
$texte .= '<tr><td>'.$langs->trans("Mask").':</td>';
$texte .= '<td class="right">'.$form->textwithpicto('<input type="text" class="flat minwidth175" name="maskproject" value="'.getDolGlobalString('PROJECT_UNIVERSAL_MASK').'">', $tooltip, 1, 1).'</td>';
@ -123,9 +123,9 @@ class mod_project_universal extends ModeleNumRefProjects
/**
* Return next value
*
* @param Societe $objsoc Object third party
* @param Societe $objsoc Object third party
* @param Project $project Object project
* @return string Value if OK, 0 if KO
* @return string Value if OK, 0 if KO
*/
public function getNextValue($objsoc, $project)
{
@ -133,7 +133,7 @@ class mod_project_universal extends ModeleNumRefProjects
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
// On defini critere recherche compteur
// We define criterion search counter
$mask = getDolGlobalString('PROJECT_UNIVERSAL_MASK');
if (!$mask) {