92 $langs->loadLangs(array(
"admin",
"companies"));
95 $s .= $langs->trans(
"Name").
': <b>'.$this->
name.
'</b><br>';
96 $s .= $langs->trans(
"Version").
': <b>'.$this->
getVersion().
'</b><br>';
98 $s .= $langs->trans(
"ValidityControledByModule").
': <b>'.$this->
getNom($langs).
'</b><br>';
101 $s .=
'<u>'.$langs->trans(
"ThisIsModuleRules").
':</u><br>';
103 $s .= $langs->trans(
"RequiredIfProduct").
': ';
104 if (
getDolGlobalString(
'MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
107 $s .=
yn(!$this->code_null, 1, 2);
108 if (
getDolGlobalString(
'MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
109 $s .=
'</strike> '.yn(1, 1, 2).
' ('.$langs->trans(
"ForcedToByAModule", $langs->transnoentities(
"yes")).
')';
114 $s .= $langs->trans(
"RequiredIfService").
': ';
115 if (
getDolGlobalString(
'MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
118 $s .=
yn(!$this->code_null, 1, 2);
119 if (
getDolGlobalString(
'MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
120 $s .=
'</strike> '.yn(1, 1, 2).
' ('.$langs->trans(
"ForcedToByAModule", $langs->transnoentities(
"yes")).
')';
125 $s .= $langs->trans(
"Required").
': ';
126 if (
getDolGlobalString(
'MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
129 $s .=
yn(!$this->code_null, 1, 2);
130 if (
getDolGlobalString(
'MAIN_BARCODE_CODE_ALWAYS_REQUIRED') && !empty($this->code_null)) {
131 $s .=
'</strike> '.yn(1, 1, 2).
' ('.$langs->trans(
"ForcedToByAModule", $langs->transnoentities(
"yes")).
')';
140 $s .= $langs->trans(
"AutomaticCode").
': '.
yn($this->code_auto, 1, 2).
'<br>';
144 if (empty($nextval)) {
145 $nextval = $langs->trans(
"Undefined");
147 $s .= $langs->trans(
"NextValue").
': <b>'.$nextval.
'</b><br>';