diff --git a/app/admin/billing/invoices.rb b/app/admin/billing/invoices.rb index 92ab5c43a..463b6fa42 100644 --- a/app/admin/billing/invoices.rb +++ b/app/admin/billing/invoices.rb @@ -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