lib/intacctrb/journal_entry.rb in intacctrb-0.5.7 vs lib/intacctrb/journal_entry.rb in intacctrb-0.5.8

- old
+ new

@@ -49,11 +49,11 @@ xml.object "glbatch" xml.pagesize (options[:max_items] || 0) xml.query options[:filter] if options[:fields] xml.fields { - fields.each do |field| + options[:fields].each do |field| xml.field field.to_s end } end } @@ -85,10 +85,10 @@ xml.read { xml.object "glbatch" xml.keys object.try(:intacct_id) || options[:intacct_id] if options[:fields] xml.fields { - fields.each do |field| + options[:fields].each do |field| xml.field field.to_s end } end }