mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Removed sync on view
This commit is contained in:
@@ -23,10 +23,5 @@ class InvoiceController < ApplicationController
|
|||||||
invoice = base.fetch_by_id(params[:id])
|
invoice = base.fetch_by_id(params[:id])
|
||||||
@pdf = base.pdf(invoice)
|
@pdf = base.pdf(invoice)
|
||||||
send_data @pdf, filename: "invoice #{invoice.doc_number}.pdf", :disposition => 'inline', :type => "application/pdf"
|
send_data @pdf, filename: "invoice #{invoice.doc_number}.pdf", :disposition => 'inline', :type => "application/pdf"
|
||||||
|
|
||||||
Thread.new do
|
|
||||||
QboInvoice.sync_by_id params[:id]
|
|
||||||
ActiveRecord::Base.connection.close
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user