Add role_invoices
This new role allows users to create invoices without role_finance. Users can then only modify their own created invoices until somebody with the role_finance sets the paid_on value.
This commit is contained in:
parent
273969ac90
commit
1315103a7d
20 changed files with 73 additions and 20 deletions
|
|
@ -169,6 +169,7 @@ de:
|
|||
role_admin: Administration
|
||||
role_article_meta: Artikeldatenbank
|
||||
role_finance: Finanzen
|
||||
role_invoices: Rechnungen
|
||||
role_orders: Bestellverwaltung
|
||||
role_suppliers: Lieferanten
|
||||
user_tokens: Mitglieder
|
||||
|
|
@ -900,6 +901,7 @@ de:
|
|||
role_admin: Admin
|
||||
role_article_meta: Artikel
|
||||
role_finance: Finanzen
|
||||
role_invoices: Rechnungen
|
||||
role_orders: Bestellung
|
||||
role_suppliers: Lieferanten
|
||||
show_google_maps: Show it on Google maps
|
||||
|
|
|
|||
|
|
@ -170,6 +170,7 @@ en:
|
|||
role_admin: Administration
|
||||
role_article_meta: Article database
|
||||
role_finance: Finances
|
||||
role_invoices: Invoices
|
||||
role_orders: Order management
|
||||
role_suppliers: Suppliers
|
||||
user_tokens: Members
|
||||
|
|
@ -913,6 +914,7 @@ en:
|
|||
role_admin: Admin
|
||||
role_article_meta: Articles
|
||||
role_finance: Finance
|
||||
role_invoices: Invoices
|
||||
role_orders: Orders
|
||||
role_suppliers: Suppliers
|
||||
show_google_maps: Show it on Google maps
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ fr:
|
|||
role_admin: Administration
|
||||
role_article_meta: Base de données des produits
|
||||
role_finance: Trésorerie
|
||||
role_invoices: Facture
|
||||
role_orders: Gestion des commandes
|
||||
role_suppliers: Contact avec les fournisseur-e-s
|
||||
user_tokens: Membres
|
||||
|
|
@ -178,12 +179,12 @@ fr:
|
|||
article:
|
||||
attributes:
|
||||
name:
|
||||
taken:
|
||||
taken_with_unit:
|
||||
taken:
|
||||
taken_with_unit:
|
||||
supplier:
|
||||
attributes:
|
||||
shared_sync_method:
|
||||
included:
|
||||
included:
|
||||
task:
|
||||
attributes:
|
||||
done:
|
||||
|
|
@ -906,6 +907,7 @@ fr:
|
|||
role_admin: Administrateur
|
||||
role_article_meta: Article
|
||||
role_finance: Finances
|
||||
role_invoices: Facture
|
||||
role_orders: Commande
|
||||
role_suppliers: Fournisseur-e
|
||||
show_google_maps: Afficher la position sur Google maps
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ nl:
|
|||
role_admin: Beheer
|
||||
role_article_meta: Artikelen
|
||||
role_finance: Financiën
|
||||
role_invoices: Facturen
|
||||
role_orders: Bestellingen
|
||||
role_suppliers: Leveranciers
|
||||
user_tokens: Leden
|
||||
|
|
@ -900,6 +901,7 @@ nl:
|
|||
role_admin: Admin
|
||||
role_article_meta: Artikelen
|
||||
role_finance: Financiën
|
||||
role_invoices: Facturen
|
||||
role_orders: Bestelling
|
||||
role_suppliers: Leveranciers
|
||||
show_google_maps: Op Google maps bekijken
|
||||
|
|
|
|||
|
|
@ -33,10 +33,10 @@ SimpleNavigation::Configuration.run do |navigation|
|
|||
subnav.item :categories, I18n.t('navigation.articles.categories'), article_categories_path
|
||||
end
|
||||
|
||||
primary.item :finance, I18n.t('navigation.finances.title'), '#', if: Proc.new { current_user.role_finance? } do |subnav|
|
||||
subnav.item :finance_home, I18n.t('navigation.finances.home'), finance_root_path
|
||||
subnav.item :accounts, I18n.t('navigation.finances.accounts'), finance_ordergroups_path
|
||||
subnav.item :balancing, I18n.t('navigation.finances.balancing'), finance_order_index_path
|
||||
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 :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
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue