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

Make the invoice number formattable #99

Open mamhoff opened 9 years ago

mamhoff commented 9 years ago

In order to satisfy jurisdictions where invoice numbers have to conform specific formal requirements (number of digits, prefix, whatever) you can now define a Spree::PrintInvoice::NumberFormattter class which initializes with a integer, and implements a to_s method returning a formatted number.

tvdeyen commented 9 years ago

Could you please add a note about this feature into the README?

😎👌👍🏼