Update list.php
This commit is contained in:
parent
bcc41c2a33
commit
cef935468d
@ -454,7 +454,7 @@ foreach ($accounts as $key=>$type)
|
||||
if (! empty($arrayfields['b.account_number']['checked']))
|
||||
{
|
||||
print '<td>';
|
||||
if (! empty($conf->accounting->enabled))
|
||||
if (! empty($conf->accounting->enabled) && ! empty($objecttmp->account_number))
|
||||
{
|
||||
$accountingaccount = new AccountingAccount($db);
|
||||
$accountingaccount->fetch('', $objecttmp->account_number, 1);
|
||||
@ -472,7 +472,7 @@ foreach ($accounts as $key=>$type)
|
||||
if (! empty($arrayfields['b.fk_accountancy_journal']['checked']))
|
||||
{
|
||||
print '<td>';
|
||||
if (! empty($conf->accounting->enabled))
|
||||
if (! empty($conf->accounting->enabled) && ! empty($objecttmp->fk_accountancy_journal))
|
||||
{
|
||||
$accountingjournal = new AccountingJournal($db);
|
||||
$accountingjournal->fetch($objecttmp->fk_accountancy_journal);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user