Show only code multicurrency in lists

This commit is contained in:
Lenin Rivas 2022-04-18 12:22:29 -05:00 committed by GitHub
parent 25fbd3b385
commit 8caa45ee80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2188,7 +2188,11 @@ if ($resql) {
// Currency
if (!empty($arrayfields['f.multicurrency_code']['checked'])) {
print '<td class="nowraponall">'.dol_escape_htmltag($obj->multicurrency_code).' - '.$langs->trans('Currency'.$obj->multicurrency_code)."</td>\n";
if (empty($conf->global->MAIN_SHOW_ONLY_CODE_MULTICURRENCY)) {
print '<td class="nowraponall">'.dol_escape_htmltag($obj->multicurrency_code).' - '.$langs->trans('Currency'.$obj->multicurrency_code)."</td>\n";
} else {
print '<td class="nowraponall">'.dol_escape_htmltag($obj->multicurrency_code)."</td>\n";
}
if (!$i) {
$totalarray['nbfield']++;
}