141 $langs->loadLangs(array(
"admin",
"companies"));
144 $s .= $langs->trans(
"Name").
': <b>'.$this->
name.
'</b><br>';
145 $s .= $langs->trans(
"Version").
': <b>'.$this->
getVersion().
'</b><br>';
147 $s .= $langs->trans(
"ValidityControledByModule").
': <b>'.$this->
getNom($langs).
'</b><br>';
150 $s .=
'<u>'.$langs->trans(
"ThisIsModuleRules").
':</u><br>';
152 $s .= $langs->trans(
"RequiredIfProduct").
': ';
153 if (!empty($conf->global->MAIN_BARCODE_CODE_ALWAYS_REQUIRED) && !empty($this->code_null)) {
156 $s .=
yn(!$this->code_null, 1, 2);
157 if (!empty($conf->global->MAIN_BARCODE_CODE_ALWAYS_REQUIRED) && !empty($this->code_null)) {
158 $s .=
'</strike> '.yn(1, 1, 2).
' ('.$langs->trans(
"ForcedToByAModule", $langs->transnoentities(
"yes")).
')';
163 $s .= $langs->trans(
"RequiredIfService").
': ';
164 if (!empty($conf->global->MAIN_BARCODE_CODE_ALWAYS_REQUIRED) && !empty($this->code_null)) {
167 $s .=
yn(!$this->code_null, 1, 2);
168 if (!empty($conf->global->MAIN_BARCODE_CODE_ALWAYS_REQUIRED) && !empty($this->code_null)) {
169 $s .=
'</strike> '.yn(1, 1, 2).
' ('.$langs->trans(
"ForcedToByAModule", $langs->transnoentities(
"yes")).
')';
174 $s .= $langs->trans(
"Required").
': ';
175 if (!empty($conf->global->MAIN_BARCODE_CODE_ALWAYS_REQUIRED) && !empty($this->code_null)) {
178 $s .=
yn(!$this->code_null, 1, 2);
179 if (!empty($conf->global->MAIN_BARCODE_CODE_ALWAYS_REQUIRED) && !empty($this->code_null)) {
180 $s .=
'</strike> '.yn(1, 1, 2).
' ('.$langs->trans(
"ForcedToByAModule", $langs->transnoentities(
"yes")).
')';
189 $s .= $langs->trans(
"AutomaticCode").
': '.
yn($this->code_auto, 1, 2).
'<br>';
193 if (empty($nextval)) {
194 $nextval = $langs->trans(
"Undefined");
196 $s .= $langs->trans(
"NextValue").
': <b>'.$nextval.
'</b><br>';