mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Rename references to native amounts
This commit is contained in:
@@ -44,10 +44,10 @@ class AccountObserver
|
||||
public function created(Account $account): void
|
||||
{
|
||||
// Log::debug('Observe "created" of an account.');
|
||||
$this->updateNativeAmount($account);
|
||||
$this->updatePrimaryCurrencyAmount($account);
|
||||
}
|
||||
|
||||
private function updateNativeAmount(Account $account): void
|
||||
private function updatePrimaryCurrencyAmount(Account $account): void
|
||||
{
|
||||
if (!Amount::convertToPrimary($account->user)) {
|
||||
return;
|
||||
@@ -67,7 +67,7 @@ class AccountObserver
|
||||
$account->native_virtual_balance = null;
|
||||
}
|
||||
$account->saveQuietly();
|
||||
// Log::debug('Account native virtual balance is updated.');
|
||||
// Log::debug('Account primary currency virtual balance is updated.');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -108,6 +108,6 @@ class AccountObserver
|
||||
public function updated(Account $account): void
|
||||
{
|
||||
// Log::debug('Observe "updated" of an account.');
|
||||
$this->updateNativeAmount($account);
|
||||
$this->updatePrimaryCurrencyAmount($account);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user