Skip to content

Commit

Permalink
Merge pull request #357 from dmitry-sinina/1.7.4
Browse files Browse the repository at this point in the history
fix manual invoice creation. closes #355
  • Loading branch information
dmitry-sinina authored Sep 2, 2018
2 parents f024ba3 + cf96d0c commit 64cd168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/admin/billing/invoices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
controller do

def create_resource(object)
object.model.type_id=Billing::InvoiceType::MANUAL #TODO fix this. We need separate method for manual creation
InvoiceGenerator.new(object.model).save!
object.type_id=Billing::InvoiceType::MANUAL #TODO fix this. We need separate method for manual creation
InvoiceGenerator.new(object).save!
end

def create
Expand Down

0 comments on commit 64cd168

Please sign in to comment.