Include IBAN

This commit is contained in:
James Cole 2016-02-05 21:12:19 +01:00
parent f1b6b3386a
commit 1542d5e386

View File

@ -105,12 +105,14 @@ class Entry
$sourceAccount = $journal->source_account;
$entry->setFromAccountId($sourceAccount->id);
$entry->setFromAccountName($sourceAccount->name);
$entry->setFromAccountIban($sourceAccount->iban);
$entry->setFromAccountType($sourceAccount->accountType->type);
/** @var Account $destination */
$destination = $journal->destination_account;
$entry->setToAccountId($destination->id);
$entry->setToAccountName($destination->name);
$entry->setToAccountIban($destination->iban);
$entry->setToAccountType($destination->accountType->type);
return $entry;