lib/intacctrb/base.rb in intacctrb-0.8.11 vs lib/intacctrb/base.rb in intacctrb-0.8.12

- old
+ new

@@ -157,7 +157,24 @@ def date_xml(xml, date) xml.year date.to_date.strftime("%Y") xml.month date.to_date.strftime("%m") xml.day date.to_date.strftime("%d") end + + def custom_fields_xml(xml, object) + xml.customfields { + if object.empower_id + xml.customfield { + xml.customfield_name 'empower_id' + xml.customfield_value object.empower_id + } + end + if object.empower_class + xml.customfield { + xml.customfield_name 'empower_class' + xml.customfield_value object.empower_class + } + end + } + end end end