Show supplier name for articles in stockit order.
This commit is contained in:
parent
0d3564492b
commit
8bafb3f4b2
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,8 @@
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th Name
|
%th Name
|
||||||
|
- if @order.stockit?
|
||||||
|
%th{style: 'width:120px'} Lieferant
|
||||||
%th{style: "width:13px;"}
|
%th{style: "width:13px;"}
|
||||||
%th{style: "width:4.5em;"} Preis
|
%th{style: "width:4.5em;"} Preis
|
||||||
%th{style: "width:4.5em;"} Einheit
|
%th{style: "width:4.5em;"} Einheit
|
||||||
|
@ -66,6 +68,8 @@
|
||||||
- order_articles.each do |order_article|
|
- order_articles.each do |order_article|
|
||||||
%tr{class: "#{cycle('even', 'odd', name: 'articles')} order-article", valign: "top"}
|
%tr{class: "#{cycle('even', 'odd', name: 'articles')} order-article", valign: "top"}
|
||||||
%td.name= order_article.article.name
|
%td.name= order_article.article.name
|
||||||
|
- if @order.stockit?
|
||||||
|
%td= truncate order_article.article.supplier.name, length: 15
|
||||||
%td= h order_article.article.origin
|
%td= h order_article.article.origin
|
||||||
%td= number_to_currency(@ordering_data[:order_articles][order_article.id][:price])
|
%td= number_to_currency(@ordering_data[:order_articles][order_article.id][:price])
|
||||||
%td= order_article.article.unit
|
%td= order_article.article.unit
|
||||||
|
|
Loading…
Reference in a new issue