From 6f7098d22e66100d1ede011c6fcb6663567d07f3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 19 Mar 2018 12:09:38 +0100 Subject: [PATCH] Update objectline_view.tpl.php --- htdocs/core/tpl/objectline_view.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/tpl/objectline_view.tpl.php b/htdocs/core/tpl/objectline_view.tpl.php index 1d9e81fe1ee..ff0cec92649 100644 --- a/htdocs/core/tpl/objectline_view.tpl.php +++ b/htdocs/core/tpl/objectline_view.tpl.php @@ -286,7 +286,7 @@ if (empty($outputalsopricetotalwithtax)) $outputalsopricetotalwithtax=0; accounting->enabled)) + if (! empty($conf->accounting->enabled) && $line->fk_accounting_account > 0) { $accountingaccount=new AccountingAccount($this->db); $accountingaccount->fetch($line->fk_accounting_account);