ajout de class pour les <td>
This commit is contained in:
parent
4bc75f6487
commit
7be3c8b64d
@ -2042,7 +2042,7 @@ if ($action == 'create') {
|
||||
if (!empty($object->lines)) {
|
||||
$i = 0; $total = 0;
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print '<tr class="liste_titre headerexpensereportdet">';
|
||||
print '<td class="center linecollinenb">'.$langs->trans('LineNb').'</td>';
|
||||
//print '<td class="center">'.$langs->trans('Piece').'</td>';
|
||||
print '<td class="center linecoldate">'.$langs->trans('Date').'</td>';
|
||||
@ -2080,19 +2080,19 @@ if ($action == 'create') {
|
||||
$numline = $i + 1;
|
||||
|
||||
if ($action != 'editline' || $line->rowid != GETPOST('rowid', 'int')) {
|
||||
print '<tr class="oddeven">';
|
||||
print '<tr class="oddeven dataline" data-lineID="'.$line->id.'">';
|
||||
|
||||
// Num
|
||||
print '<td class="center">';
|
||||
print '<td class="center datanumline">';
|
||||
print $numline;
|
||||
print '</td>';
|
||||
|
||||
// Date
|
||||
print '<td class="center">'.dol_print_date($db->jdate($line->date), 'day').'</td>';
|
||||
print '<td class="center datadate">'.dol_print_date($db->jdate($line->date), 'day').'</td>';
|
||||
|
||||
// Project
|
||||
if (!empty($conf->projet->enabled)) {
|
||||
print '<td>';
|
||||
print '<td class="center dateproject">';
|
||||
if ($line->fk_project > 0) {
|
||||
$projecttmp->id = $line->fk_project;
|
||||
$projecttmp->ref = $line->projet_ref;
|
||||
@ -2118,26 +2118,26 @@ if ($action == 'create') {
|
||||
}
|
||||
|
||||
// Type of fee
|
||||
print '<td class="center" title="'.dol_escape_htmltag($titlealt).'">';
|
||||
print '<td class="center datatype" title="'.dol_escape_htmltag($titlealt).'">';
|
||||
$labeltype = ($langs->trans(($line->type_fees_code)) == $line->type_fees_code ? $line->type_fees_libelle : $langs->trans($line->type_fees_code));
|
||||
print $labeltype;
|
||||
print '</td>';
|
||||
|
||||
// IK
|
||||
if (!empty($conf->global->MAIN_USE_EXPENSE_IK)) {
|
||||
print '<td class="fk_c_exp_tax_cat">';
|
||||
print '<td class="fk_c_exp_tax_cat datataxcat">';
|
||||
print dol_getIdFromCode($db, $line->fk_c_exp_tax_cat, 'c_exp_tax_cat', 'rowid', 'label');
|
||||
print '</td>';
|
||||
}
|
||||
|
||||
// Comment
|
||||
print '<td class="left">'.dol_nl2br($line->comments).'</td>';
|
||||
print '<td class="left datacomment">'.dol_nl2br($line->comments).'</td>';
|
||||
|
||||
// VAT rate
|
||||
print '<td class="right">'.vatrate($line->vatrate.($line->vat_src_code ? ' ('.$line->vat_src_code.')' : ''), true).'</td>';
|
||||
print '<td class="right datavatrate">'.vatrate($line->vatrate.($line->vat_src_code ? ' ('.$line->vat_src_code.')' : ''), true).'</td>';
|
||||
|
||||
// Unit price HT
|
||||
print '<td class="right">';
|
||||
print '<td class="right dataunitht">';
|
||||
if (!empty($line->value_unit_ht)) {
|
||||
print price($line->value_unit_ht);
|
||||
} else {
|
||||
@ -2147,13 +2147,13 @@ if ($action == 'create') {
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
print '<td class="right">'.price($line->value_unit).'</td>';
|
||||
print '<td class="right dataunitttc">'.price($line->value_unit).'</td>';
|
||||
|
||||
print '<td class="right">'.dol_escape_htmltag($line->qty).'</td>';
|
||||
print '<td class="right dataqty">'.dol_escape_htmltag($line->qty).'</td>';
|
||||
|
||||
if ($action != 'editline') {
|
||||
print '<td class="right">'.price($line->total_ht).'</td>';
|
||||
print '<td class="right">'.price($line->total_ttc).'</td>';
|
||||
print '<td class="right totaoht">'.price($line->total_ht).'</td>';
|
||||
print '<td class="right datatotalttc">'.price($line->total_ttc).'</td>';
|
||||
}
|
||||
|
||||
// Column with preview
|
||||
|
||||
Loading…
Reference in New Issue
Block a user