Lots of todo's [skip ci]

This commit is contained in:
James Cole
2016-03-02 13:51:56 +01:00
parent 500243b0b3
commit 9b69a6addd
18 changed files with 25 additions and 25 deletions

View File

@@ -80,7 +80,7 @@ class Entry
$entry = new self;
$entry->setDescription($journal->description);
$entry->setDate($journal->date->format('Y-m-d'));
$entry->setAmount($journal->amount);
$entry->setAmount($journal->amount); // TODO TransactionJournal cannot deliver "amount".
/** @var Budget $budget */
$budget = $journal->budgets->first();
@@ -102,14 +102,14 @@ class Entry
}
/** @var Account $sourceAccount */
$sourceAccount = $journal->source_account;
$sourceAccount = $journal->source_account; // TODO TransactionJournal cannot deliver "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;
$destination = $journal->destination_account; // TODO TransactionJournal cannot deliver "destination_account"
$entry->setToAccountId($destination->id);
$entry->setToAccountName($destination->name);
$entry->setToAccountIban($destination->iban);