Merge pull request #20689 from atm-gauthier/FIX/trad_expense_tax_cat_label

FIX : label tax cat trad
This commit is contained in:
Laurent Destailleur 2022-04-29 17:22:15 +02:00 committed by GitHub
commit a6f48868f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2068,7 +2068,8 @@ if ($action == 'create') {
// IK
if (!empty($conf->global->MAIN_USE_EXPENSE_IK)) {
print '<td class="fk_c_exp_tax_cat">';
print dol_getIdFromCode($db, $line->fk_c_exp_tax_cat, 'c_exp_tax_cat', 'rowid', 'label');
$exp_tax_cat_label = dol_getIdFromCode($db, $line->fk_c_exp_tax_cat, 'c_exp_tax_cat', 'rowid', 'label');
print $langs->trans($exp_tax_cat_label);
print '</td>';
}