From c3cd2ff3db4480f0f8cc6ca8542e143bbe078699 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 19 Mar 2018 12:13:18 +0100 Subject: [PATCH] Update objectline_view.tpl.php --- htdocs/core/tpl/objectline_view.tpl.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/htdocs/core/tpl/objectline_view.tpl.php b/htdocs/core/tpl/objectline_view.tpl.php index ff0cec92649..82fe0dde873 100644 --- a/htdocs/core/tpl/objectline_view.tpl.php +++ b/htdocs/core/tpl/objectline_view.tpl.php @@ -143,6 +143,14 @@ if (empty($outputalsopricetotalwithtax)) $outputalsopricetotalwithtax=0; 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 '
' . $langs->trans('AccountingAffectation') . ': ' . $accountingaccount->getNomUrl(0,1,1); + } + ?> -accounting->enabled) && $line->fk_accounting_account > 0) - { - $accountingaccount=new AccountingAccount($this->db); - $accountingaccount->fetch($line->fk_accounting_account); - echo '' . $langs->trans('AccountingAffectation') . ': ' . $accountingaccount->getNomUrl(0,1,1) . ''; - } -?> - showOptionals($extrafieldsline,'view',array('style'=>$bcdd[$var],'colspan'=>$coldisplay)); } ?> - + +