feat: add Accountancy code

This commit is contained in:
steve 2022-03-01 11:42:10 +01:00
parent 91ee90ebeb
commit 1908acb131
2 changed files with 10 additions and 4 deletions

View File

@ -502,6 +502,12 @@ if ($action != 'edit' && $action != 'create') { // If not bank account yet, $ac
print '</tr>';
}
// Accountancy code
if (!empty($conf->accounting->enabled)) {
print '<tr><td>'.$langs->trans("AccountancyCode").'</td>';
print '<td>'.$object->accountancy_code.'</td></tr>';
}
print '</table>';
print '</div><div class="fichehalfright">';

View File

@ -1577,10 +1577,10 @@ if ($action == 'create' || $action == 'adduserldap') {
}
// Accountancy code
if (!empty($conf->accounting->enabled)) {
print '<tr><td>'.$langs->trans("AccountancyCode").'</td>';
print '<td>'.$object->accountancy_code.'</td></tr>';
}
//if (!empty($conf->accounting->enabled)) {
// print '<tr><td>'.$langs->trans("AccountancyCode").'</td>';
// print '<td>'.$object->accountancy_code.'</td></tr>';
//}
print '</table>';