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);