Update tests, fixes some bugs.

This commit is contained in:
James Cole
2016-12-11 10:38:06 +01:00
parent ec3b356f86
commit b4eac84097
8 changed files with 169 additions and 87 deletions

View File

@@ -113,8 +113,8 @@ class JournalTasker implements JournalTaskerInterface
/** @var Transaction $entry */
foreach ($set as $entry) {
$sourceBalance = $this->getBalance($entry->id);
$destinationBalance = $this->getBalance($entry->destination_id);
$sourceBalance = $this->getBalance(intval($entry->id));
$destinationBalance = $this->getBalance(intval($entry->destination_id));
$budget = $entry->budgets->first();
$category = $entry->categories->first();
$transaction = [