Complete StockArticle#show view
This commit is contained in:
parent
fef8c6d99f
commit
9a9a782bc4
4 changed files with 49 additions and 19 deletions
|
@ -1,17 +1,47 @@
|
||||||
- title t('.stock_changes', :article_name => @stock_article.name)
|
- title @stock_article.name
|
||||||
|
|
||||||
%table.table.table-hover#stock_changes
|
.row-fluid
|
||||||
%thead
|
.span6
|
||||||
%tr
|
%dl.dl-horizontal
|
||||||
%th= t '.datetime'
|
%dt= StockArticle.human_attribute_name 'supplier'
|
||||||
%th= t '.reason'
|
%dd= link_to @stock_article.supplier.name, @stock_article.supplier
|
||||||
%th= t '.change_quantity'
|
%dt= StockArticle.human_attribute_name 'name'
|
||||||
%th= t '.new_quantity'
|
%dd= @stock_article.name
|
||||||
%tbody
|
%dt= StockArticle.human_attribute_name 'unit'
|
||||||
- reversed_history = @stock_article.quantity_history.reverse
|
%dd= @stock_article.unit
|
||||||
- @stock_changes.each_with_index do |stock_change, index|
|
%dt= StockArticle.human_attribute_name 'price'
|
||||||
%tr
|
%dd= number_to_currency @stock_article.price
|
||||||
%td= l stock_change.created_at
|
%dt= StockArticle.human_attribute_name 'tax'
|
||||||
%td= link_to_stock_change_reason(stock_change)
|
%dd= number_to_percentage @stock_article.tax
|
||||||
%td= stock_change.quantity
|
%dt= StockArticle.human_attribute_name 'deposit'
|
||||||
%td= reversed_history[index]
|
%dd= number_to_currency @stock_article.deposit
|
||||||
|
%dt= StockArticle.human_attribute_name 'fc_price'
|
||||||
|
%dd= number_to_currency @stock_article.fc_price
|
||||||
|
%dt= StockArticle.human_attribute_name 'article_category'
|
||||||
|
%dd= @stock_article.article_category.name
|
||||||
|
%dt= StockArticle.human_attribute_name 'note'
|
||||||
|
%dd= @stock_article.note
|
||||||
|
%dt= StockArticle.human_attribute_name 'quantity'
|
||||||
|
%dd= @stock_article.quantity
|
||||||
|
%dt= StockArticle.human_attribute_name 'quantity_available'
|
||||||
|
%dd= @stock_article.quantity_available
|
||||||
|
.form-actions
|
||||||
|
= link_to t('ui.edit'), edit_stock_article_path(@stock_article), class: 'btn'
|
||||||
|
|
||||||
|
.span6
|
||||||
|
%h2= t('.stock_changes')
|
||||||
|
%table.table.table-hover#stock_changes
|
||||||
|
%thead
|
||||||
|
%tr
|
||||||
|
%th= t '.datetime'
|
||||||
|
%th= t '.reason'
|
||||||
|
%th= t '.change_quantity'
|
||||||
|
%th= t '.new_quantity'
|
||||||
|
%tbody
|
||||||
|
- reversed_history = @stock_article.quantity_history.reverse
|
||||||
|
- @stock_changes.each_with_index do |stock_change, index|
|
||||||
|
%tr
|
||||||
|
%td= l stock_change.created_at
|
||||||
|
%td= link_to_stock_change_reason(stock_change)
|
||||||
|
%td= stock_change.quantity
|
||||||
|
%td= reversed_history[index]
|
||||||
|
|
|
@ -1763,7 +1763,7 @@ de:
|
||||||
new_quantity: Neuer Bestand
|
new_quantity: Neuer Bestand
|
||||||
order: Bestellung
|
order: Bestellung
|
||||||
reason: Ereignis
|
reason: Ereignis
|
||||||
stock_changes: Verlauf anzeigen für »%{article_name}«
|
stock_changes: Verlauf des Lagerbestands
|
||||||
stock_taking: Inventur
|
stock_taking: Inventur
|
||||||
stock_create:
|
stock_create:
|
||||||
notice: Lagerartikel wurde gespeichert.
|
notice: Lagerartikel wurde gespeichert.
|
||||||
|
|
|
@ -1767,7 +1767,7 @@ en:
|
||||||
new_quantity: New quantity
|
new_quantity: New quantity
|
||||||
order: Order
|
order: Order
|
||||||
reason: Reason
|
reason: Reason
|
||||||
stock_changes: Stock quantity changes of ‘%{article_name}’
|
stock_changes: Stock quantity changes
|
||||||
stock_taking: Inventory
|
stock_taking: Inventory
|
||||||
stock_create:
|
stock_create:
|
||||||
notice: Stock article was created.
|
notice: Stock article was created.
|
||||||
|
|
|
@ -1769,7 +1769,7 @@ fr:
|
||||||
new_quantity: Nouveau stock
|
new_quantity: Nouveau stock
|
||||||
order: Commande
|
order: Commande
|
||||||
reason: Raison
|
reason: Raison
|
||||||
stock_changes: Afficher l'historique pour "%{article_name}"
|
stock_changes: Afficher l'historique
|
||||||
stock_taking: Inventaire
|
stock_taking: Inventaire
|
||||||
stock_create:
|
stock_create:
|
||||||
notice: L'article a été sauvegardé.
|
notice: L'article a été sauvegardé.
|
||||||
|
|
Loading…
Reference in a new issue