Update qbo_controller.rb

This commit is contained in:
ricky authored and GitHub committed 2016-09-01 01:37:57 -04:00
1 parent 5bdf313fa5
commit 8720176b57
1 file changed
+3 -5
+3 -5
View File
@@ -65,11 +65,9 @@ class QboController < ApplicationController
# Manual Billing
def bill
if session[:id]
i = Issue.find session[:id]
i.bill_time if i
redirect_to i, :flash => { :notice => "Successfully Billed #{i.customer.name}" }
end
i = Issue.find session[:id]
i.bill_time
redirect_to i, :flash => { :notice => "Successfully Billed #{i.customer.name}" }
end
# Quickbooks Webhook Callback