Fixed wrong articles total in group_order#show.

Conflicts:

	app/views/group_orders/show.html.haml
This commit is contained in:
Benjamin Meichsner 2013-04-08 13:39:02 +02:00 committed by wvengen
parent d4b9370541
commit 93f4239db6

View file

@ -48,7 +48,6 @@
= t '.articles.order_not_open'
%th= t '.articles.total_price'
%tbody
- total = 0 #set counter for order-sum
- for category_name, order_articles in @order.articles_grouped_by_category
%tr.article-category
%td
@ -75,7 +74,7 @@
%td{colspan: "6"}=h oa.article.note
%tr{class: cycle('even', 'odd', name: 'articles')}
%th{colspan: "5"}= t '.articles.sum'
%th= number_to_currency(total)
%th= number_to_currency(@group_order.price)
%br/
= link_to_top
- else