Add model and views for bank accounts
This commit is contained in:
parent
4b1e9a6f53
commit
f0a55fb951
24 changed files with 351 additions and 1 deletions
|
|
@ -242,6 +242,7 @@ en:
|
|||
models:
|
||||
article: Article
|
||||
article_category: Category
|
||||
bank_transaction: Bank transaction
|
||||
delivery: Delivery
|
||||
financial_transaction: Financial transaction
|
||||
financial_transaction_class: Financial transaction class
|
||||
|
|
@ -902,6 +903,17 @@ en:
|
|||
reload: Reload summary
|
||||
with_extra_charge: 'with extra charge:'
|
||||
without_extra_charge: 'without extra charge:'
|
||||
bank_accounts:
|
||||
index:
|
||||
account_statement: Account statement
|
||||
title: Bank Accounts
|
||||
bank_transactions:
|
||||
index:
|
||||
title: Bank transactions for %{name} (%{balance})
|
||||
show:
|
||||
belongs_to_supplier: belongs to supplier
|
||||
belongs_to_user: belongs to user
|
||||
in_ordergroup: in ordergroup
|
||||
create:
|
||||
notice: Invoice was created.
|
||||
financial_links:
|
||||
|
|
@ -1452,6 +1464,7 @@ en:
|
|||
finances:
|
||||
accounts: Manage accounts
|
||||
balancing: Account orders
|
||||
bank_accounts: Bank Accounts
|
||||
home: Overview
|
||||
invoices: Invoices
|
||||
title: Finances
|
||||
|
|
@ -1992,6 +2005,7 @@ en:
|
|||
please_wait: Please wait...
|
||||
restore: Restore
|
||||
save: Save
|
||||
search_placeholder: Search ...
|
||||
show: Show
|
||||
views:
|
||||
pagination:
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ SimpleNavigation::Configuration.run do |navigation|
|
|||
|
||||
primary.item :finance, I18n.t('navigation.finances.title'), '#', if: Proc.new { current_user.role_finance? || current_user.role_invoices? } do |subnav|
|
||||
subnav.item :finance_home, I18n.t('navigation.finances.home'), finance_root_path, if: Proc.new { current_user.role_finance? }
|
||||
subnav.item :finance_home, I18n.t('navigation.finances.bank_accounts'), finance_bank_accounts_path, if: Proc.new { current_user.role_finance? }
|
||||
subnav.item :accounts, I18n.t('navigation.finances.accounts'), finance_ordergroups_path, if: Proc.new { current_user.role_finance? }
|
||||
subnav.item :balancing, I18n.t('navigation.finances.balancing'), finance_order_index_path, if: Proc.new { current_user.role_finance? }
|
||||
subnav.item :invoices, I18n.t('navigation.finances.invoices'), finance_invoices_path
|
||||
|
|
|
|||
|
|
@ -176,6 +176,13 @@ Foodsoft::Application.routes.draw do
|
|||
|
||||
get 'transactions/new_collection' => 'financial_transactions#new_collection', as: 'new_transaction_collection'
|
||||
post 'transactions/create_collection' => 'financial_transactions#create_collection', as: 'create_transaction_collection'
|
||||
|
||||
resources :bank_accounts, only: [:index] do
|
||||
resources :bank_transactions, as: :transactions
|
||||
end
|
||||
|
||||
resources :bank_transactions, only: [:index, :show]
|
||||
|
||||
end
|
||||
|
||||
########### Administration
|
||||
|
|
@ -184,9 +191,11 @@ Foodsoft::Application.routes.draw do
|
|||
root to: 'base#index'
|
||||
|
||||
resources :finances, only: [:index] do
|
||||
get :update_bank_accounts, on: :collection
|
||||
get :update_transaction_types, on: :collection
|
||||
end
|
||||
|
||||
resources :bank_accounts
|
||||
resources :financial_transaction_classes
|
||||
resources :financial_transaction_types
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue