Added a lot of todo things.

This commit is contained in:
James Cole
2016-05-15 15:24:23 +02:00
parent 60d732067b
commit 4164ebcc69
20 changed files with 70 additions and 319 deletions

View File

@@ -10,7 +10,6 @@ declare(strict_types = 1);
namespace FireflyIII\Export\Entry;
use FireflyIII\Models\Account;
use FireflyIII\Models\TransactionJournal;
/**
@@ -66,13 +65,11 @@ class Entry
$entry->category = new EntryCategory($journal->categories->first());
$entry->bill = new EntryBill($journal->bill);
/** @var Account $sourceAccount */
$sourceAccount = TransactionJournal::sourceAccount($journal);
$entry->sourceAccount = new EntryAccount($sourceAccount);
/** @var Account $destination */
$destination = TransactionJournal::destinationAccount($journal);
$entry->destinationAccount = new EntryAccount($destination);
// TODO support split journals
$sources = TransactionJournal::sourceAccountList($journal);
$entry->sourceAccount = new EntryAccount($sources->first());
$destinations = TransactionJournal::destinationAccountList($journal);
$entry->destinationAccount = new EntryAccount($destinations->first());
return $entry;