Add link for creating invoice at an order
This commit is contained in:
parent
36dd19f324
commit
6015d16cab
5 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,13 @@
|
||||||
- title t('.title', name: @order.name)
|
- title t('.title', name: @order.name)
|
||||||
|
|
||||||
|
- if current_user.role_finance? || current_user.role_invoices?
|
||||||
|
- content_for :actionbar do
|
||||||
|
- if @order.invoice.present?
|
||||||
|
= link_to t('.show_invoice'), finance_invoice_path(@order.invoice), class: 'btn'
|
||||||
|
- elsif @order.closed?
|
||||||
|
= link_to t('.create_invoice'), new_finance_invoice_path(:order_id => @order, :supplier_id => @order.supplier),
|
||||||
|
class: 'btn'
|
||||||
|
|
||||||
.well
|
.well
|
||||||
= close_button :alert
|
= close_button :alert
|
||||||
%p
|
%p
|
||||||
|
|
|
@ -1303,6 +1303,7 @@ de:
|
||||||
confirm_end: |-
|
confirm_end: |-
|
||||||
Willst Du wirklich die Bestellung %{order} beenden?
|
Willst Du wirklich die Bestellung %{order} beenden?
|
||||||
Es gibt kein zurück.
|
Es gibt kein zurück.
|
||||||
|
create_invoice: Rechnung anlegen
|
||||||
description1: "%{state} Bestellung von %{supplier} angelegt von %{who}, läuft von %{starts} bis %{ends}."
|
description1: "%{state} Bestellung von %{supplier} angelegt von %{who}, läuft von %{starts} bis %{ends}."
|
||||||
description2: "%{ordergroups} haben %{article_count} Artikel mit einem Gesamtwert von %{net_sum} / %{gross_sum} (netto / brutto) bestellt."
|
description2: "%{ordergroups} haben %{article_count} Artikel mit einem Gesamtwert von %{net_sum} / %{gross_sum} (netto / brutto) bestellt."
|
||||||
download:
|
download:
|
||||||
|
@ -1320,6 +1321,7 @@ de:
|
||||||
default: Suche nach Artikeln ...
|
default: Suche nach Artikeln ...
|
||||||
groups: Suche nach Bestellgruppen ...
|
groups: Suche nach Bestellgruppen ...
|
||||||
search_reset: Suche zurücksetzen
|
search_reset: Suche zurücksetzen
|
||||||
|
show_invoice: Rechnung anzeigen
|
||||||
sort_article: Sortiert nach Artikeln
|
sort_article: Sortiert nach Artikeln
|
||||||
sort_group: Sortiert nach Gruppen
|
sort_group: Sortiert nach Gruppen
|
||||||
title: 'Bestellung: %{name}'
|
title: 'Bestellung: %{name}'
|
||||||
|
|
|
@ -1325,6 +1325,7 @@ en:
|
||||||
confirm_end: |-
|
confirm_end: |-
|
||||||
Do you really want to close the order %{order}?
|
Do you really want to close the order %{order}?
|
||||||
There is no going back.
|
There is no going back.
|
||||||
|
create_invoice: Add invoice
|
||||||
description1: "%{state} order from %{supplier} created by %{who}, open from %{starts} until %{ends}."
|
description1: "%{state} order from %{supplier} created by %{who}, open from %{starts} until %{ends}."
|
||||||
description2: "%{ordergroups} ordered %{article_count} articles, with a total value of %{net_sum} / %{gross_sum} (net / gross)."
|
description2: "%{ordergroups} ordered %{article_count} articles, with a total value of %{net_sum} / %{gross_sum} (net / gross)."
|
||||||
download:
|
download:
|
||||||
|
@ -1342,6 +1343,7 @@ en:
|
||||||
default: Search for articles...
|
default: Search for articles...
|
||||||
groups: Search for ordergroups...
|
groups: Search for ordergroups...
|
||||||
search_reset: Reset search
|
search_reset: Reset search
|
||||||
|
show_invoice: Show invoice
|
||||||
sort_article: Sorted in articles
|
sort_article: Sorted in articles
|
||||||
sort_group: Sorted in groups
|
sort_group: Sorted in groups
|
||||||
title: 'Order: %{name}'
|
title: 'Order: %{name}'
|
||||||
|
|
|
@ -1311,6 +1311,7 @@ fr:
|
||||||
comments_link: Commenaire
|
comments_link: Commenaire
|
||||||
confirm_delete: Veux-tu vraiment supprimer la commande?
|
confirm_delete: Veux-tu vraiment supprimer la commande?
|
||||||
confirm_end: Veux tu vraiment clôturer la commande %{order}? Pas d'annulation possible.
|
confirm_end: Veux tu vraiment clôturer la commande %{order}? Pas d'annulation possible.
|
||||||
|
create_invoice: Ajouter une facture
|
||||||
description1: Commande %{state} de %{supplier} créée par %{who}, ouverte du %{starts} au %{ends}.
|
description1: Commande %{state} de %{supplier} créée par %{who}, ouverte du %{starts} au %{ends}.
|
||||||
description2: "%{ordergroups} ont commandé %{article_count} articles, pour un montant total de %{net_sum} (net)/ %{gross_sum} (brut)"
|
description2: "%{ordergroups} ont commandé %{article_count} articles, pour un montant total de %{net_sum} (net)/ %{gross_sum} (brut)"
|
||||||
download:
|
download:
|
||||||
|
@ -1328,6 +1329,7 @@ fr:
|
||||||
default: Rechercher des articles...
|
default: Rechercher des articles...
|
||||||
groups: Rechercher des cellules...
|
groups: Rechercher des cellules...
|
||||||
search_reset: Réinitialiser la recherche
|
search_reset: Réinitialiser la recherche
|
||||||
|
show_invoice: Afficher la facture
|
||||||
sort_article: Trié par article
|
sort_article: Trié par article
|
||||||
sort_group: Trié par cellules
|
sort_group: Trié par cellules
|
||||||
title: 'Commande: %{name}'
|
title: 'Commande: %{name}'
|
||||||
|
|
|
@ -1306,6 +1306,7 @@ nl:
|
||||||
confirm_end: |-
|
confirm_end: |-
|
||||||
Wil je de bestelling %{order} echt sluiten?
|
Wil je de bestelling %{order} echt sluiten?
|
||||||
Hierna kan zij niet opnieuw geopend worden.
|
Hierna kan zij niet opnieuw geopend worden.
|
||||||
|
create_invoice: Factuur toevoegen
|
||||||
description1: "%{state} bestelling van %{supplier}, geopend door %{who}, open van %{starts} tot %{ends}."
|
description1: "%{state} bestelling van %{supplier}, geopend door %{who}, open van %{starts} tot %{ends}."
|
||||||
description2: "%{ordergroups} hebben %{article_count} artikelen besteld met een totale waarde van %{net_sum} / %{gross_sum} (netto / bruto)."
|
description2: "%{ordergroups} hebben %{article_count} artikelen besteld met een totale waarde van %{net_sum} / %{gross_sum} (netto / bruto)."
|
||||||
download:
|
download:
|
||||||
|
@ -1323,6 +1324,7 @@ nl:
|
||||||
default: Artikelen zoeken...
|
default: Artikelen zoeken...
|
||||||
groups: Huishoudens zoeken...
|
groups: Huishoudens zoeken...
|
||||||
search_reset: Zoekopdracht wissen
|
search_reset: Zoekopdracht wissen
|
||||||
|
show_invoice: Factuur tonen
|
||||||
sort_article: Per artikel
|
sort_article: Per artikel
|
||||||
sort_group: Per huishouden
|
sort_group: Per huishouden
|
||||||
title: 'Bestelling: %{name}'
|
title: 'Bestelling: %{name}'
|
||||||
|
|
Loading…
Reference in a new issue