spree-contrib / spree_print_invoice

Create a PDF invoice for Spree orders.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
91 stars 239 forks source link

Adds store pdf as file feature. #80

Closed tvdeyen closed 9 years ago

tvdeyen commented 9 years ago

Introduces new settings store_pdf (disabled by default) and storage_path that allow to store the rendered pdf template to disk. These files can then be i.e. attached to emails.

Also refactors some tests and moves lots of code into the order model, away from the orders controller.

Refs #60

tvdeyen commented 9 years ago

Ah, dang! I broke the update_invoice_number feature. Closing.

tvdeyen commented 9 years ago

Ok, have to check the tests on travis. They pass locally. :disappointed:

JDutil commented 9 years ago

Probably because travis isn't giving you file system access

tvdeyen commented 9 years ago

@JDutil I fixed the specs