Update invoice.rb

authorized method for invoice