Port current_orders plugin to current foodsoft
This commit is contained in:
parent
5907ff11bb
commit
466e8c5eeb
19 changed files with 114 additions and 108 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue