another tiny change in pdf

This commit is contained in:
viehlieb 2025-05-22 15:22:20 +02:00
parent 683c81bc76
commit 043eccf167

View file

@ -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