Add import route for bank_transactions
This commit is contained in:
parent
0bb0536903
commit
903086ab97
5 changed files with 27 additions and 0 deletions
|
|
@ -905,6 +905,9 @@ en:
|
|||
with_extra_charge: 'with extra charge:'
|
||||
without_extra_charge: 'without extra charge:'
|
||||
bank_accounts:
|
||||
controller:
|
||||
import:
|
||||
notice: '%{count} new transactions have been imported'
|
||||
index:
|
||||
account_statement: Account statement
|
||||
title: Bank Accounts
|
||||
|
|
|
|||
|
|
@ -192,6 +192,10 @@ Foodsoft::Application.routes.draw do
|
|||
post 'transactions/create_collection' => 'financial_transactions#create_collection', as: 'create_transaction_collection'
|
||||
|
||||
resources :bank_accounts, only: [:index] do
|
||||
member do
|
||||
get :import
|
||||
end
|
||||
|
||||
resources :bank_transactions, as: :transactions
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue