mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-07-16 00:28:12 -07:00
🤖 Auto commit for release 'develop' on 2026-03-01
This commit is contained in:
@@ -42,11 +42,7 @@ trait ResolvesJournalAmountAndCurrency
|
||||
$currencyDecimalPlaces = (int) ($journal['currency_decimal_places'] ?? $currency['currency_decimal_places'] ?? 2);
|
||||
$amount = (string) $journal['amount'];
|
||||
|
||||
if (
|
||||
$this->convertToPrimary
|
||||
&& null !== $this->primaryCurrency
|
||||
&& $currencyId !== $this->primaryCurrency->id
|
||||
) {
|
||||
if ($this->convertToPrimary && null !== $this->primaryCurrency && $currencyId !== $this->primaryCurrency->id) {
|
||||
$currencyId = $this->primaryCurrency->id;
|
||||
$currencyName = $this->primaryCurrency->name;
|
||||
$currencySymbol = $this->primaryCurrency->symbol;
|
||||
@@ -54,8 +50,7 @@ trait ResolvesJournalAmountAndCurrency
|
||||
$currencyDecimalPlaces = $this->primaryCurrency->decimal_places;
|
||||
$amount = (int) ($journal['foreign_currency_id'] ?? 0) === $this->primaryCurrency->id
|
||||
? (string) ($journal['foreign_amount'] ?? '0')
|
||||
: (string) ($journal['pc_amount'] ?? '0')
|
||||
;
|
||||
: (string) ($journal['pc_amount'] ?? '0');
|
||||
}
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user