mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Merge pull request #1821 from internetee/1819-improve-credit-account-balance-overview
Registrar / REPP: Preserve balance after billable action
This commit is contained in:
commit
98bbc52c71
6 changed files with 68 additions and 3 deletions
|
@ -13,6 +13,9 @@ class AccountActivity < ApplicationRecord
|
|||
def update_balance
|
||||
account.balance += sum
|
||||
account.save
|
||||
|
||||
self.new_balance = account.balance
|
||||
save
|
||||
end
|
||||
|
||||
class << self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue