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)
|
||||
|
||||
- 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
|
||||
= close_button :alert
|
||||
%p
|
||||
|
|
|
@ -1303,6 +1303,7 @@ de:
|
|||
confirm_end: |-
|
||||
Willst Du wirklich die Bestellung %{order} beenden?
|
||||
Es gibt kein zurück.
|
||||
create_invoice: Rechnung anlegen
|
||||
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."
|
||||
download:
|
||||
|
@ -1320,6 +1321,7 @@ de:
|
|||
default: Suche nach Artikeln ...
|
||||
groups: Suche nach Bestellgruppen ...
|
||||
search_reset: Suche zurücksetzen
|
||||
show_invoice: Rechnung anzeigen
|
||||
sort_article: Sortiert nach Artikeln
|
||||
sort_group: Sortiert nach Gruppen
|
||||
title: 'Bestellung: %{name}'
|
||||
|
|
|
@ -1325,6 +1325,7 @@ en:
|
|||
confirm_end: |-
|
||||
Do you really want to close the order %{order}?
|
||||
There is no going back.
|
||||
create_invoice: Add invoice
|
||||
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)."
|
||||
download:
|
||||
|
@ -1342,6 +1343,7 @@ en:
|
|||
default: Search for articles...
|
||||
groups: Search for ordergroups...
|
||||
search_reset: Reset search
|
||||
show_invoice: Show invoice
|
||||
sort_article: Sorted in articles
|
||||
sort_group: Sorted in groups
|
||||
title: 'Order: %{name}'
|
||||
|
|
|
@ -1311,6 +1311,7 @@ fr:
|
|||
comments_link: Commenaire
|
||||
confirm_delete: Veux-tu vraiment supprimer la commande?
|
||||
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}.
|
||||
description2: "%{ordergroups} ont commandé %{article_count} articles, pour un montant total de %{net_sum} (net)/ %{gross_sum} (brut)"
|
||||
download:
|
||||
|
@ -1328,6 +1329,7 @@ fr:
|
|||
default: Rechercher des articles...
|
||||
groups: Rechercher des cellules...
|
||||
search_reset: Réinitialiser la recherche
|
||||
show_invoice: Afficher la facture
|
||||
sort_article: Trié par article
|
||||
sort_group: Trié par cellules
|
||||
title: 'Commande: %{name}'
|
||||
|
|
|
@ -1306,6 +1306,7 @@ nl:
|
|||
confirm_end: |-
|
||||
Wil je de bestelling %{order} echt sluiten?
|
||||
Hierna kan zij niet opnieuw geopend worden.
|
||||
create_invoice: Factuur toevoegen
|
||||
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)."
|
||||
download:
|
||||
|
@ -1323,6 +1324,7 @@ nl:
|
|||
default: Artikelen zoeken...
|
||||
groups: Huishoudens zoeken...
|
||||
search_reset: Zoekopdracht wissen
|
||||
show_invoice: Factuur tonen
|
||||
sort_article: Per artikel
|
||||
sort_group: Per huishouden
|
||||
title: 'Bestelling: %{name}'
|
||||
|
|
Loading…
Reference in a new issue