Respond to currency changes.

This commit is contained in:
James Cole
2024-12-21 07:12:11 +01:00
parent 7fd5a88122
commit b52a1f3eb1
15 changed files with 234 additions and 45 deletions

View File

@@ -6,6 +6,7 @@ use Illuminate\Support\Facades\Schema;
return new class extends Migration {
private array $tables = [
// !!! this array is also in PreferencesEventHandler
'accounts' => ['native_virtual_balance'], // works.
'account_piggy_bank' => ['native_current_amount'], // works
'auto_budgets' => ['native_amount'], // works
@@ -16,9 +17,7 @@ return new class extends Migration {
'piggy_banks' => ['native_target_amount'], // works
'transactions' => ['native_amount', 'native_foreign_amount'], // works
// TODO native currency changes, reset everything.
// TODO button to recalculate all native amounts on selected pages?
// TODO check if you use the correct date for the excange rate
];