Catch the error in #760

This commit is contained in:
James Cole
2017-08-13 12:37:09 +02:00
parent ec636c95a1
commit f9c85d4d81
3 changed files with 8 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ trait ImportSupport
*/
private function getTransactionType(string $amount, Account $account): string
{
$transactionType = '';
$transactionType = TransactionType::WITHDRAWAL;
// amount is negative, it's a withdrawal, opposing is an expense:
if (bccomp($amount, '0') === -1) {
$transactionType = TransactionType::WITHDRAWAL;