Fixed Estiamte & Invoice Link

Added Estimate Drop down
Disabled Automatic Estimate Creation
Added Controllers for Estimates & Invoices
This commit is contained in:
2016-02-25 22:51:38 -05:00
parent e9038a56c1
commit 88b66c4b41
11 changed files with 78 additions and 28 deletions

View File

@@ -76,23 +76,4 @@ class QboController < ApplicationController
redirect_to qbo_path(:redmine_qbo), :flash => { :notice => "Successfully synced to Quickbooks" }
end
#
# Downloads and forwards the estimate pdf
#
def estimate_pdf
base = QboEstimate.get_base.service
@pdf = base.pdf(base.fetch_by_id(params[:id]))
send_data @pdf, filename: "estimate.pdf", :disposition => 'inline', :type => "application/pdf"
end
#
# Downloads and forwards the invoice pdf
#
def invoice_pdf
base = QboInvoice.get_base.service
@pdf = base.pdf(base.fetch_by_id(params[:id]))
send_data @pdf, filename: "invoice.pdf", :disposition => 'inline', :type => "application/pdf"
end
end
end