Port current_orders plugin to current foodsoft

This commit is contained in:
wvengen 2015-04-10 20:25:51 +02:00
parent 5907ff11bb
commit 466e8c5eeb
19 changed files with 114 additions and 108 deletions

View file

@ -23,7 +23,7 @@ class MultipleOrdersByArticles < OrderPdf
has_units_str = ''
for goa in order_article.group_order_articles.ordered
units = result_in_units(goa, order_article.article)
rows << [show_group(goa.group_order.ordergroup),
rows << [goa.group_order.ordergroup.name,
goa.tolerance > 0 ? "#{goa.quantity} + #{goa.tolerance}" : goa.quantity,
goa.result,
units,

View file

@ -74,7 +74,7 @@ class MultipleOrdersByGroups < OrderPdf
rows.first[-1] = nil
end
text show_group(ordergroup), size: fontsize(13), style: :bold
text ordergroup.name, size: fontsize(13), style: :bold
table rows, width: bounds.width, cell_style: {size: fontsize(8), overflow: :shrink_to_fit} do |table|
# borders
table.cells.borders = [:bottom]