Add import route for bank_transactions

This commit is contained in:
Patrick Gansterer 2018-10-11 23:26:12 +02:00
parent 0bb0536903
commit 903086ab97
5 changed files with 27 additions and 0 deletions

View file

@ -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

View file

@ -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