mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
added method which note cancelled payment orders
This commit is contained in:
parent
b3e27b37b5
commit
2d911e53c3
1 changed files with 6 additions and 0 deletions
|
@ -63,7 +63,13 @@ module Admin
|
|||
account_activity_dup.save
|
||||
account_activity.update(invoice_id: nil)
|
||||
account_activity_dup.update(invoice_id: nil)
|
||||
mark_cancelled_payment_order(invoice)
|
||||
account_activity.save && account_activity_dup.save
|
||||
end
|
||||
|
||||
def mark_cancelled_payment_order(invoice)
|
||||
payment_order = invoice.payment_orders.last
|
||||
payment_order.update(notes: 'Cancelled')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue