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

@@ -44,9 +44,9 @@ class ConnectJournalToPiggyBank
}
bcscale(2);
$amount = $journal->amount_positive;
$amount = $journal->amount_positive; // TODO TransactionJournal cannot deliver "amount_positive".
// if piggy account matches source account, the amount is positive
if ($piggyBank->account_id == $journal->source_account->id) {
if ($piggyBank->account_id == $journal->source_account->id) {// TODO TransactionJournal cannot deliver "source_account"
$amount = bcmul($amount, '-1');
}

View File

@@ -44,7 +44,7 @@ class UpdateJournalConnection
}
bcscale(2);
$amount = $journal->amount;
$amount = $journal->amount; // TODO TransactionJournal cannot deliver "amount".
$diff = bcsub($amount, $event->amount); // update current repetition
$repetition->currentamount = bcadd($repetition->currentamount, $diff);