mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-03 17:00:43 -04:00
Updated to quickbooks-ruby-base and added QboEstimate
This commit is contained in:
1 parent
a10b075ab8
commit
ddb4f40486
6 files changed
+63
-26
No files matched your search
@@ -21,8 +21,8 @@ class IssuesSaveHookListener < Redmine::Hook::ViewListener
|
||||
# if this is a quote, lets create a new estimate based off estimated hours
|
||||
if issue.tracker.name = "Quote" and issue.status.name = "New" and issue.custom_field_value(CustomField.find_by_name("Estimate").id).empty? then
|
||||
|
||||
item_service = Quickbooks::Service::Item.new(:company_id => Qbo.get_realm_id, :access_token => Qbo.get_auth_token)
|
||||
|
||||
item_service = QboItem.get_base.service
|
||||
|
||||
estimate = Quickbooks::Model::Estimate .new
|
||||
estimate .customer_id = issue.qbo_customer_id
|
||||
estimate .txn_date = Date.today
|
||||
|
||||
Reference in new issue
Block a user