Skip to content
Rémy Coutable edited this page Jan 14, 2014 · 1 revision

How to cancel an invoice?

This can only be done via the Rails console:

$ h run console
> invoice_reference = 'wwxxyyzz'
> invoice = Invoice.find_by_reference(invoice_reference)
> invoice.cancel!

How to cancel a user account on behalf of a user?

This can only be done via the Rails console:

$ h run console
> user_id = 12345
> user = User.find(user_id)
> UserManager.new(user).archive(skip_password: true)