mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 06:01:21 +00:00
Catch the error in #760
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user