From 8bafb3f4b2de7ea6506d112e11c5f4bd65855948 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Tue, 12 Mar 2013 19:08:18 +0100 Subject: [PATCH] Show supplier name for articles in stockit order. --- app/views/group_orders/_form.html.haml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/group_orders/_form.html.haml b/app/views/group_orders/_form.html.haml index b1103462..b040354e 100644 --- a/app/views/group_orders/_form.html.haml +++ b/app/views/group_orders/_form.html.haml @@ -45,6 +45,8 @@ %thead %tr %th Name + - if @order.stockit? + %th{style: 'width:120px'} Lieferant %th{style: "width:13px;"} %th{style: "width:4.5em;"} Preis %th{style: "width:4.5em;"} Einheit @@ -66,6 +68,8 @@ - order_articles.each do |order_article| %tr{class: "#{cycle('even', 'odd', name: 'articles')} order-article", valign: "top"} %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= number_to_currency(@ordering_data[:order_articles][order_article.id][:price]) %td= order_article.article.unit