Fix missing title
This commit is contained in:
parent
1ed7c225d7
commit
5539b07bc5
@ -2076,17 +2076,13 @@ else
|
|||||||
if ($action != 'editline' || $line->rowid != GETPOST('rowid', 'int'))
|
if ($action != 'editline' || $line->rowid != GETPOST('rowid', 'int'))
|
||||||
{
|
{
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
|
// Num
|
||||||
print '<td class="center">';
|
print '<td class="center">';
|
||||||
print $numline;
|
print $numline;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
// Date
|
||||||
/*print '<td class="center">';
|
|
||||||
print img_picto($langs->trans("Document"), "object_generic");
|
|
||||||
print ' <span>'.$piece_comptable.'</span>';
|
|
||||||
print '</td>';*/
|
|
||||||
|
|
||||||
print '<td class="center">'.dol_print_date($db->jdate($line->date), 'day').'</td>';
|
print '<td class="center">'.dol_print_date($db->jdate($line->date), 'day').'</td>';
|
||||||
|
// Project
|
||||||
if (! empty($conf->projet->enabled))
|
if (! empty($conf->projet->enabled))
|
||||||
{
|
{
|
||||||
print '<td>';
|
print '<td>';
|
||||||
@ -2094,21 +2090,26 @@ else
|
|||||||
{
|
{
|
||||||
$projecttmp->id=$line->fk_project;
|
$projecttmp->id=$line->fk_project;
|
||||||
$projecttmp->ref=$line->projet_ref;
|
$projecttmp->ref=$line->projet_ref;
|
||||||
|
$projecttmp->title=$line->projet_title;
|
||||||
print $projecttmp->getNomUrl(1);
|
print $projecttmp->getNomUrl(1);
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
// IK
|
||||||
if (!empty($conf->global->MAIN_USE_EXPENSE_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">';
|
||||||
print dol_getIdFromCode($db, $line->fk_c_exp_tax_cat, 'c_exp_tax_cat', 'rowid', 'label');
|
print dol_getIdFromCode($db, $line->fk_c_exp_tax_cat, 'c_exp_tax_cat', 'rowid', 'label');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
// Type of fee
|
||||||
print '<td class="center">';
|
print '<td class="center">';
|
||||||
$labeltype = ($langs->trans(($line->type_fees_code)) == $line->type_fees_code ? $line->type_fees_libelle : $langs->trans($line->type_fees_code));
|
$labeltype = ($langs->trans(($line->type_fees_code)) == $line->type_fees_code ? $line->type_fees_libelle : $langs->trans($line->type_fees_code));
|
||||||
print $labeltype;
|
print $labeltype;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
// Comment
|
||||||
print '<td class="left">'.dol_nl2br($line->comments).'</td>';
|
print '<td class="left">'.dol_nl2br($line->comments).'</td>';
|
||||||
|
// VAT rate
|
||||||
print '<td class="right">'.vatrate($line->vatrate, true).'</td>';
|
print '<td class="right">'.vatrate($line->vatrate, true).'</td>';
|
||||||
// Unit price HT
|
// Unit price HT
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
@ -2716,9 +2717,6 @@ if ($action != 'create' && $action != 'edit')
|
|||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
|
|
||||||
//$conf->global->DOL_URL_ROOT_DOCUMENT_PHP=dol_buildpath('/expensereport/documentwrapper.php',1);
|
|
||||||
|
|
||||||
|
|
||||||
// Select mail models is same action as presend
|
// Select mail models is same action as presend
|
||||||
if (GETPOST('modelselected', 'alpha')) {
|
if (GETPOST('modelselected', 'alpha')) {
|
||||||
$action = 'presend';
|
$action = 'presend';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user