Rewrite OrderPdfs to support multiple orders at once

This commit is contained in:
Patrick Gansterer 2017-11-15 19:22:55 +01:00
parent 80899afcb0
commit 3e156bbbf3
11 changed files with 457 additions and 408 deletions

View file

@ -3,8 +3,6 @@ class OrderFax < OrderPdf
BATCH_SIZE = 250
attr_reader :order
def filename
I18n.t('documents.order_fax.filename', :name => order.name, :date => order.ends.to_date) + '.pdf'
end