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

Add Bookkeeping Document ID to cached PDF file name #94

Closed mamhoff closed 9 years ago

mamhoff commented 9 years ago

In case your app is (admittedly) wrongly configured so that invoice numbers for some reason not unique, you might end sending the wrong invoice to your customer. This commit mitigates that by including the document ID in the filename.

futhr commented 9 years ago

@mamhoff Thanks!