Various fixes. Sorry, lazy day.

This commit is contained in:
James Cole
2019-08-03 06:27:56 +02:00
parent 43dbad4e4c
commit febaab62f7
9 changed files with 57864 additions and 9 deletions

View File

@@ -205,12 +205,12 @@ class ReconcileController extends Controller
$inverse = true;
}
// reconciliation into account? then positive amount:
if (TransactionType::RECONCILIATION === $journal['transaction_type_type']) {
// opening balance into account? then positive amount:
if (TransactionType::OPENING_BALANCE === $journal['transaction_type_type']
&& $account->id === $journal['destination_account_id']) {
$inverse = true;
}
if (true === $inverse) {
$journal['amount'] = app('steam')->positive($journal['amount']);
if (null !== $journal['foreign_amount']) {