2009-02-12 18:32:20 +01:00
|
|
|
- title "Inventur anzeigen"
|
|
|
|
|
2012-10-29 18:28:17 +01:00
|
|
|
.well.well-small
|
|
|
|
%dl.dl-horizontal
|
|
|
|
%dt Datum
|
|
|
|
%dd= format_date @stock_taking.date
|
|
|
|
%dt Notiz
|
|
|
|
%dd= simple_format @stock_taking.note
|
2009-02-12 18:32:20 +01:00
|
|
|
|
2012-10-29 18:28:17 +01:00
|
|
|
%table.table.table-striped
|
2009-02-12 18:32:20 +01:00
|
|
|
%tr
|
|
|
|
%th Artikel
|
2009-03-22 13:56:54 +01:00
|
|
|
%th Lieferantin
|
2009-02-12 18:32:20 +01:00
|
|
|
%th Einheit
|
|
|
|
%th Menge
|
2012-10-29 18:28:17 +01:00
|
|
|
- for stock_change in @stock_taking.stock_changes.all
|
2009-02-12 18:32:20 +01:00
|
|
|
%tr
|
|
|
|
%td= stock_change.stock_article.name
|
|
|
|
%td= stock_change.stock_article.supplier.name
|
|
|
|
%td= stock_change.stock_article.unit
|
|
|
|
%td= stock_change.quantity
|
|
|
|
|
2012-10-29 18:28:17 +01:00
|
|
|
.btn-group
|
|
|
|
= link_to "Bearbeiten", edit_stock_taking_path(@stock_taking), class: 'btn'
|
|
|
|
= link_to "Inventurübersicht", stock_takings_path, class: 'btn'
|
|
|
|
= link_to "Löschen", @stock_taking, :method => :delete, :confirm => "Willst Du wirklich die Inventur löschen?",
|
|
|
|
class: 'btn btn-danger'
|