Expand code to be able to handle updates.

This commit is contained in:
James Cole
2018-02-21 08:51:30 +01:00
parent f16760d607
commit e9b6b45fc4
8 changed files with 643 additions and 21 deletions

View File

@@ -64,7 +64,9 @@ class TransactionJournal extends Twig_Extension
'currency' => $foreign,
];
}
$totals[$foreignId]['amount'] = bcadd($transaction->foreign_amount, $totals[$foreignId]['amount']);
$totals[$foreignId]['amount'] = bcadd(
$transaction->foreign_amount,
$totals[$foreignId]['amount']);
}
}
$array = [];