mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-15 19:09:50 +00:00
Rename references to native amounts
This commit is contained in:
@@ -38,10 +38,10 @@ class BillObserver
|
||||
public function created(Bill $bill): void
|
||||
{
|
||||
// Log::debug('Observe "created" of a bill.');
|
||||
$this->updateNativeAmount($bill);
|
||||
$this->updatePrimaryCurrencyAmount($bill);
|
||||
}
|
||||
|
||||
private function updateNativeAmount(Bill $bill): void
|
||||
private function updatePrimaryCurrencyAmount(Bill $bill): void
|
||||
{
|
||||
if (!Amount::convertToPrimary($bill->user)) {
|
||||
return;
|
||||
@@ -57,7 +57,7 @@ class BillObserver
|
||||
$bill->native_amount_max = $converter->convert($bill->transactionCurrency, $userCurrency, today(), $bill->amount_max);
|
||||
}
|
||||
$bill->saveQuietly();
|
||||
Log::debug('Bill native amounts are updated.');
|
||||
Log::debug('Bill primary currency amounts are updated.');
|
||||
}
|
||||
|
||||
public function deleting(Bill $bill): void
|
||||
@@ -76,6 +76,6 @@ class BillObserver
|
||||
public function updated(Bill $bill): void
|
||||
{
|
||||
// Log::debug('Observe "updated" of a bill.');
|
||||
$this->updateNativeAmount($bill);
|
||||
$this->updatePrimaryCurrencyAmount($bill);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user