mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-26 17:01:20 -06:00
Fix #2584
This commit is contained in:
parent
7735402f54
commit
0eae4329f4
@ -254,7 +254,7 @@ class OperationsRepository implements OperationsRepositoryInterface
|
|||||||
'currency_name' => $journal['currency_name'],
|
'currency_name' => $journal['currency_name'],
|
||||||
'currency_symbol' => $journal['currency_symbol'],
|
'currency_symbol' => $journal['currency_symbol'],
|
||||||
'currency_code' => $journal['currency_code'],
|
'currency_code' => $journal['currency_code'],
|
||||||
'currency_decimal_places' => $journal['currency_decimal_places'],
|
'currency_decimal_places' => (int)$journal['currency_decimal_places'],
|
||||||
];
|
];
|
||||||
$array[$currencyId]['sum'] = bcadd($array[$currencyId]['sum'], app('steam')->negative($journal['amount']));
|
$array[$currencyId]['sum'] = bcadd($array[$currencyId]['sum'], app('steam')->negative($journal['amount']));
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,7 @@ trait TransactionValidation
|
|||||||
|
|
||||||
foreach ($transactions as $index => $transaction) {
|
foreach ($transactions as $index => $transaction) {
|
||||||
$originalType = $this->getOriginalType((int)($transaction['transaction_journal_id'] ?? 0));
|
$originalType = $this->getOriginalType((int)($transaction['transaction_journal_id'] ?? 0));
|
||||||
$originalData = $this->getOriginalData($transaction['transaction_journal_id'] ?? 0);
|
$originalData = $this->getOriginalData((int)($transaction['transaction_journal_id'] ?? 0));
|
||||||
$transactionType = $transaction['type'] ?? $originalType;
|
$transactionType = $transaction['type'] ?? $originalType;
|
||||||
$accountValidator->setTransactionType($transactionType);
|
$accountValidator->setTransactionType($transactionType);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user