some refactoring of invoice printing code
Add support to overwrite an existing invoice
Add support to print an invoice directly from the invoice edit page
Merge branch 'shineisp/sandbox'
Renamed method
Set order status to complete if all items inside orders are completed
Merge pull request #127 from guestisp/master

Pull request to sync the code