This prevented FF from displaying cash account properly.

This commit is contained in:
James Cole 2017-03-03 12:55:28 +01:00
parent b3b8981b4b
commit 978e3e615c
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -204,7 +204,7 @@ class Transaction extends Twig_Extension
$name = $transaction->opposing_account_name;
$id = intval($transaction->opposing_account_id);
$type = intval($transaction->opposing_account_type);
$type = $transaction->opposing_account_type;
}
// Find the opposing account and use that one:
@ -278,7 +278,7 @@ class Transaction extends Twig_Extension
$name = $transaction->opposing_account_name;
$id = intval($transaction->opposing_account_id);
$type = intval($transaction->opposing_account_type);
$type = $transaction->opposing_account_type;
}
// Find the opposing account and use that one:
if (bccomp($transaction->transaction_amount, '0') === 1 && is_null($transaction->opposing_account_id)) {