Update objectline_view.tpl.php

This commit is contained in:
Laurent Destailleur 2018-03-19 12:09:38 +01:00 committed by GitHub
parent 0182b724aa
commit 6f7098d22e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,7 +286,7 @@ if (empty($outputalsopricetotalwithtax)) $outputalsopricetotalwithtax=0;
<?php } ?>
<?php
if (! empty($conf->accounting->enabled))
if (! empty($conf->accounting->enabled) && $line->fk_accounting_account > 0)
{
$accountingaccount=new AccountingAccount($this->db);
$accountingaccount->fetch($line->fk_accounting_account);