Remove number_display.rb

This commit is contained in:
Patrick Gansterer 2020-03-23 12:53:21 +01:00
parent 5f2e319469
commit 67ab647eb0
9 changed files with 18 additions and 35 deletions

View file

@ -27,7 +27,7 @@ class MultipleOrdersByArticles < OrderPdf
each_group_order_article_for(order_article) do |goa|
rows << [goa.group_order.ordergroup_name,
goa.tolerance > 0 ? "#{goa.quantity} + #{goa.tolerance}" : goa.quantity,
goa.result,
group_order_article_result(goa),
number_to_currency(goa.total_price(order_article))]
dimrows << rows.length if goa.result == 0
end

View file

@ -38,7 +38,7 @@ class MultipleOrdersByGroups < OrderPdf
number_to_currency(price),
goa.order_article.article.unit,
goa.tolerance > 0 ? "#{goa.quantity} + #{goa.tolerance}" : goa.quantity,
goa.result,
group_order_article_result(goa),
number_to_currency(sub_total),
goa.order_article.price.unit_quantity]
dimrows << rows.length if goa.result == 0

View file

@ -53,9 +53,9 @@
%td
- best_sum = @poll.resistance_points? ? sums.min : sums.max
- if sum == best_sum
%strong= sum
%strong= number_with_precision sum, strip_insignificant_zeros: true
- else
= sum
= number_with_precision sum, strip_insignificant_zeros: true
%td
- for vote in @poll.poll_votes