1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 05:25:24 +02:00

Add confirmation dialog for balance reconciliation creates and updates (#2457)
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

This commit is contained in:
Zach Gollwitzer 2025-07-15 18:58:40 -04:00 committed by GitHub
parent c1d98fe73b
commit 89cc64418e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 180 additions and 49 deletions

View file

@ -115,8 +115,8 @@ class Account < ApplicationRecord
end
def update_balance(balance:, date: Date.current, currency: nil, notes: nil)
Account::BalanceUpdater.new(self, balance:, currency:, date:, notes:).update
def update_balance(balance:, date: Date.current, currency: nil, notes: nil, existing_valuation_id: nil)
Account::BalanceUpdater.new(self, balance:, currency:, date:, notes:, existing_valuation_id:).update
end
def start_date