mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 14:06:21 +02:00
update export invoices task and add request for update invoice status when invoice is cancelled
This commit is contained in:
parent
363dd8370f
commit
5c306accc3
4 changed files with 41 additions and 2 deletions
|
@ -49,6 +49,8 @@ module Admin
|
|||
|
||||
def cancel
|
||||
@invoice.cancel
|
||||
EisBilling::SendInvoiceStatus.send_info(invoice_number: @invoice.number, status: 'cancelled')
|
||||
|
||||
redirect_to [:admin, @invoice], notice: t('.cancelled')
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue