another tiny change in pdf
This commit is contained in:
parent
683c81bc76
commit
043eccf167
1 changed files with 5 additions and 3 deletions
|
|
@ -187,9 +187,11 @@ class GroupOrderInvoicePdf < RenderPdf
|
||||||
index = 0
|
index = 0
|
||||||
supplier_headlines = []
|
supplier_headlines = []
|
||||||
group_order_articles.group_by { |goa| goa.group_order.order.supplier.name }.each do |supplier_name, articles|
|
group_order_articles.group_by { |goa| goa.group_order.order.supplier.name }.each do |supplier_name, articles|
|
||||||
data << [supplier_name, "", "", "", "", ""]
|
if articles.map(&:result).sum > 0
|
||||||
index += 1
|
data << [supplier_name, "", "", "", "", ""]
|
||||||
supplier_headlines << index
|
index += 1
|
||||||
|
supplier_headlines << index
|
||||||
|
end
|
||||||
|
|
||||||
articles.each do |goa|
|
articles.each do |goa|
|
||||||
next if goa.result.to_i == 0
|
next if goa.result.to_i == 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue