Spree HTML Invoices

Now printing an invoice with the complete information of an order has been simplified with spree-html-invoice extension which is forked from konung/spree-html-invoice and being maintained with regular updates. With the use of this extension, one can override invoice html and thus can have control over the content that is going to be printed.

Installation:

  • gem ‘spree_html_invoice’ , github: ‘vinsol-spree-contrib/spree-html-invoice’
  • bundle install
  • Usage:

    An Admin can effortlessly print and download the invoice for an order with the help of Print Invoice button provided on the order detail page.

  • Admin navigates to Orders Listing Page clicking on ORDERS tab from the sidebar menu of the page.
  • Invoice-img-1

  • Admin chooses an order by clicking on order number to have its invoice printed.
  • Invoice-img-2

  • There appears a ‘Print Invoice’ button on the left-hand side of the order detail page that opens a printable HTML page in the new tab.
  • Invoice-img-3

  • Lastly, your invoice can be printed or downloaded for business use for various purposes.
  • Final Invoice

    Testing:

  • bundle
  • bundle exec rake test_app
  • bundle exec rspec spec
  • As it is an open source extension, you can access the code here. Follow us on twitter for more updates.

    Leave a Reply

    Your email address will not be published. Required fields are marked *