lib/intacctrb/employee.rb in intacctrb-0.5.6 vs lib/intacctrb/employee.rb in intacctrb-0.5.7
- old
+ new
@@ -20,15 +20,13 @@
:personalinfo
] if fields.empty?
send_xml('get') do |xml|
xml.function(controlid: "f4") {
- xml.get(object: "employee", key: "intacct_system_id") {
- xml.fields {
- fields.each do |field|
- xml.field field.to_s
- end
- }
+ xml.read {
+ xml.object 'EMPLOYEE'
+ xml.keys object.intacct_id
+ xml.fields '*'
}
}
end
if successful?