mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
added test
This commit is contained in:
parent
af8bc41556
commit
895fa22702
3 changed files with 18 additions and 2 deletions
|
@ -26,7 +26,7 @@ module Admin
|
|||
|
||||
account_activity = AccountActivity.find_by(invoice_id: invoice_id)
|
||||
account_activity_dup = account_activity.dup
|
||||
account_activity_dup.sum = -account_activity.sum
|
||||
account_activity_dup.sum = -account_activity.sum.to_i
|
||||
|
||||
if account_activity_dup.save and invoice.update(cancelled_at: Time.zone.today)
|
||||
flash[:notice] = t(:payment_was_cancelled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue