Skip to content

Commit

Permalink
Update objectline_view.tpl.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 19, 2018
1 parent 6f7098d commit c3cd2ff
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions htdocs/core/tpl/objectline_view.tpl.php
Expand Up @@ -143,6 +143,14 @@
echo get_date_range($line->date_start,$line->date_end, $format);
}
}

if (! empty($conf->accounting->enabled) && $line->fk_accounting_account > 0)
{
$accountingaccount=new AccountingAccount($this->db);
$accountingaccount->fetch($line->fk_accounting_account);
echo '<br>' . $langs->trans('AccountingAffectation') . ': ' . $accountingaccount->getNomUrl(0,1,1);
}

?>
</td>
<?php
Expand Down Expand Up @@ -285,22 +293,14 @@
<td colspan="3"><?php $coldisplay=$coldisplay+3; ?></td>
<?php } ?>

<?php
if (! empty($conf->accounting->enabled) && $line->fk_accounting_account > 0)
{
$accountingaccount=new AccountingAccount($this->db);
$accountingaccount->fetch($line->fk_accounting_account);
echo '<tr><td colspan=' . $coldisplay . '>' . $langs->trans('AccountingAffectation') . ': ' . $accountingaccount->getNomUrl(0,1,1) . '</td></tr>';
}
?>

<?php
//Line extrafield
if (!empty($extrafieldsline))
{
print $line->showOptionals($extrafieldsline,'view',array('style'=>$bcdd[$var],'colspan'=>$coldisplay));
}
?>

</tr>

<!-- END PHP TEMPLATE objectline_view.tpl.php -->

0 comments on commit c3cd2ff

Please sign in to comment.