mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Webhook
This commit is contained in:
1 parent
370153bed9
commit
09e1c0ad48
1 file changed
+12
@@ -78,6 +78,18 @@ class QboController < ApplicationController
|
|||||||
if entity['name'].eql? "Customer"
|
if entity['name'].eql? "Customer"
|
||||||
Customer.sync_by_id(entity['id'].to_i)
|
Customer.sync_by_id(entity['id'].to_i)
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
# The webhook doesn't require a response but let's make sure
|
# The webhook doesn't require a response but let's make sure
|
||||||
|
|||||||
Reference in new issue
Block a user