From c3e4d0dbc2c95888b4a75a82fc26c050739db015 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 6 Sep 2016 23:33:39 -0400 Subject: [PATCH] Update invoice_controller.rb --- app/controllers/invoice_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/invoice_controller.rb b/app/controllers/invoice_controller.rb index 1d07b39..42308ef 100644 --- a/app/controllers/invoice_controller.rb +++ b/app/controllers/invoice_controller.rb @@ -18,7 +18,7 @@ class InvoiceController < ApplicationController # Downloads and forwards the invoice pdf # def show - base = QboInvoice.get_base.service + base = QboInvoice.get_base invoice = base.fetch_by_id(params[:id]) @pdf = base.pdf(invoice) send_data @pdf, filename: "invoice #{invoice.doc_number}.pdf", :disposition => 'inline', :type => "application/pdf"