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
|
||||
supplier_headlines = []
|
||||
group_order_articles.group_by { |goa| goa.group_order.order.supplier.name }.each do |supplier_name, articles|
|
||||
data << [supplier_name, "", "", "", "", ""]
|
||||
index += 1
|
||||
supplier_headlines << index
|
||||
if articles.map(&:result).sum > 0
|
||||
data << [supplier_name, "", "", "", "", ""]
|
||||
index += 1
|
||||
supplier_headlines << index
|
||||
end
|
||||
|
||||
articles.each do |goa|
|
||||
next if goa.result.to_i == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue