enable actions for multi (group) orders and ordergroup invoices
This commit is contained in:
parent
f676497e43
commit
e902aa0d5a
44 changed files with 550 additions and 324 deletions
10
db/routes.rb
10
db/routes.rb
|
|
@ -148,6 +148,7 @@ Rails.application.routes.draw do
|
|||
end
|
||||
|
||||
|
||||
post 'finance/ordergroup_invoice', to: 'ordergroup_invoices#create_multiple',
|
||||
post 'finance/group_order_invoice', to: 'group_order_invoices#create_multiple'
|
||||
|
||||
get 'orders/:order_id/group_order_invoices/download_all', to: 'group_order_invoices#download_all', as: 'download_all_group_order_invoices'
|
||||
|
|
@ -155,6 +156,15 @@ Rails.application.routes.draw do
|
|||
resources :ordergroup_invoices do
|
||||
member do
|
||||
get :download_collective
|
||||
patch :select_sepa_sequence_type
|
||||
patch :toggle_paid
|
||||
patch :toggle_sepa_downloaded
|
||||
end
|
||||
collection do
|
||||
get :download_within_date
|
||||
patch :select_all_sepa_sequence_type
|
||||
patch :toggle_all_sepa_downloaded
|
||||
patch :toggle_all_paid
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue