From 09e1c0ad481f5a494287ce55cca0e68698d7c80a Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Jul 2016 09:07:51 -0400 Subject: [PATCH] Webhook --- app/controllers/qbo_controller.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/controllers/qbo_controller.rb b/app/controllers/qbo_controller.rb index f6eeef3..184e18e 100644 --- a/app/controllers/qbo_controller.rb +++ b/app/controllers/qbo_controller.rb @@ -78,6 +78,18 @@ class QboController < ApplicationController if entity['name'].eql? "Customer" Customer.sync_by_id(entity['id'].to_i) end + + if entity['name'].eql? "Invoice" + Invoice.sync_by_id(entity['id'].to_i) + end + + if entity['name'].eql? "Estimate" + Estimate.sync_by_id(entity['id'].to_i) + end + + if entity['name'].eql? "Employee" + Employee.sync_by_id(entity['id'].to_i) + end end # The webhook doesn't require a response but let's make sure