mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update customer.rb
This commit is contained in:
1 parent
948c5d0146
commit
d265d765d1
1 file changed
+2
-2
@@ -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