Fixed Estiamte & Invoice Link

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

No files matched your search

+1 -20
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