No commit activity in last 3 years
No release in over 3 years
Invoice generator for spree that generate invoice automatically on order paid
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

SpreeAutoInvoice

Spree invoice gem with state machine.

Dependencies

To generate the pdf is used:https://code.google.com/p/wkhtmltopdf/

Installation

Add spree_auto_invoice to your Gemfile:

gem 'spree_auto_invoice'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_auto_invoice:install

Configuration

In initializers folder you can find spree_auto_invoice.rb with the various configuration

TODO

###General

  • What we do when a payment is removed and invoice is generated?
  • What we do when a payment is removed and the invoice isn't generated?

###Auto invoice

  • Testing auto invoice with immediate payments (credit card)

###Invoice template

  • Create better invoice template

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

bundle
bundle exec rake test_app
bundle exec rspec spec

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_auto_invoice/factories'

Copyright (c) 2013 Geekcups srls, released under the New BSD License