lib/intacctrb/base.rb in intacctrb-0.5.0 vs lib/intacctrb/base.rb in intacctrb-0.5.1
- old
+ new
@@ -65,10 +65,10 @@
res = Net::HTTP.post_form(uri, 'xmlrequest' => xml)
@response = Nokogiri::XML(res.body)
puts res.body
if successful?
- if key = response.at('//result//RECORDNO')
+ if key = response.at('//result//RECORDNO') || response.at('//result//key')
set_intacct_id key.content if object
end
if intacct_action
run_hook :after_send_xml, intacct_action