Update customer.rb

This commit is contained in:
2016-05-02 13:32:02 -04:00
parent aea9bf5f40
commit f0b6c237cc

View File

@@ -165,7 +165,7 @@ class Customer < ActiveRecord::Base
if new_record?
customer = Quickbooks::Model::Customer.new
customer.display_name = self.name
@details = Qbo.get_base(:customer).create(customer)
@details = get_base.service.create(customer)
self.id = @details.id
end
end