Skip to content

Instantly share code, notes, and snippets.

@airspeed
Last active December 19, 2015 13:49
Show Gist options
  • Save airspeed/5965186 to your computer and use it in GitHub Desktop.
Save airspeed/5965186 to your computer and use it in GitHub Desktop.
Erstellt eine 3. Mahnung.
def print_3m(invoices, out)
os = invoices.map(&:order_cart)
params = {:@invoice_address => os.last.invoice_address, :@order_carts => os, :@invoices => invoices, :@filedate => Date.today}
Clixxie::PdfGenerator.from_template("invoice_mailer/mahnung_3_de.pdf.erb", out, "K#{invoices.first.customer_id}_3m.pdf", params)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment