mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
Fixed wrong conversion to revenue account
This commit is contained in:
@@ -334,7 +334,7 @@ class ImportValidator
|
|||||||
}
|
}
|
||||||
|
|
||||||
// amount > 0, but opposing is expense
|
// 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);
|
$account = $this->convertAccount($entry->fields['opposing-account'], AccountType::REVENUE);
|
||||||
$entry->fields['opposing-account'] = $account;
|
$entry->fields['opposing-account'] = $account;
|
||||||
Log::debug('Converted expense account to revenue account');
|
Log::debug('Converted expense account to revenue account');
|
||||||
|
Reference in New Issue
Block a user