mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 12:24:50 +00:00
Lots of todo's [skip ci]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user