enable actions for multi (group) orders and ordergroup invoices

This commit is contained in:
viehlieb 2025-05-19 16:37:05 +02:00
parent f676497e43
commit e902aa0d5a
44 changed files with 550 additions and 324 deletions

View file

@ -148,13 +148,24 @@ 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'
get 'multi_orders/:multi_order_id/group_order_invoices/download_all', to: 'ordergroup_invoices#download_all', as: 'download_all_ordergroup_invoices'
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
@ -172,9 +183,10 @@ Rails.application.routes.draw do
end
end
resources :multi_orders, only: [:create, :show] do
resources :multi_orders, only: [:create, :show, :destroy] do
member do
get :generate_ordergroup_invoices
get :collective_direct_debit
end
end