mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Merge pull request #298 from Bonno/develop
Fixed wrong conversion to revenue account
This commit is contained in:
commit
ca2301959c
@ -334,7 +334,7 @@ class ImportValidator
|
||||
}
|
||||
|
||||
// amount > 0, but opposing is expense
|
||||
if ($type == AccountType::EXPENSE && $entry->fields['amount'] < 0) {
|
||||
if ($type == AccountType::EXPENSE && $entry->fields['amount'] > 0) {
|
||||
$account = $this->convertAccount($entry->fields['opposing-account'], AccountType::REVENUE);
|
||||
$entry->fields['opposing-account'] = $account;
|
||||
Log::debug('Converted expense account to revenue account');
|
||||
|
Loading…
Reference in New Issue
Block a user