mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update customer.rb
This commit is contained in:
@@ -146,9 +146,9 @@ class Customer < ActiveRecord::Base
|
||||
def pull
|
||||
begin
|
||||
#tries ||= 3
|
||||
raise Exception if self.id
|
||||
raise Exception unless self.id
|
||||
@details = Qbo.get_base(:customer).find_by_id(self.id)
|
||||
rescue
|
||||
rescue Exception => e
|
||||
#retry unless (tries -= 1).zero?
|
||||
@details = Quickbooks::Model::Customer.new
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user