Method: IntacctRB::Customer#update
- Defined in:
- lib/intacctrb/customer.rb
#update(updated_customer = false) ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/intacctrb/customer.rb', line 83 def update updated_customer = false @object = updated_customer if updated_customer return false unless object.intacct_system_id.present? send_xml('update') do |xml| xml.function(controlid: "1") { xml.update_customer(customerid: intacct_system_id) { xml.name object.name xml.comments xml.status "active" } } end successful? end |