mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 14:12:15 +00:00
Rename many references from native to primary.
This commit is contained in:
@@ -93,7 +93,7 @@ class Steam
|
||||
|
||||
return [];
|
||||
}
|
||||
$defaultCurrency = Amount::getNativeCurrency();
|
||||
$defaultCurrency = Amount::getPrimaryCurrency();
|
||||
if ($convertToNative) {
|
||||
if ($defaultCurrency->id === $currency?->id) {
|
||||
Log::debug(sprintf('Unset [%s] for account #%d (no longer unset "native_balance")', $defaultCurrency->code, $account->id));
|
||||
@@ -344,7 +344,7 @@ class Steam
|
||||
}
|
||||
// Log::debug(sprintf('finalAccountBalance(#%d, %s)', $account->id, $date->format('Y-m-d H:i:s')));
|
||||
if (null === $convertToNative) {
|
||||
$convertToNative = Amount::convertToNative($account->user);
|
||||
$convertToNative = Amount::convertToPrimary($account->user);
|
||||
}
|
||||
if (!$native instanceof TransactionCurrency) {
|
||||
$native = Amount::getPrimaryCurrencyByUserGroup($account->user->userGroup);
|
||||
|
||||
Reference in New Issue
Block a user