class IntacctRuby::Functions::CreateGLTransaction
creates gltransaction instance in Intacct
Public Class Methods
new(attrs = {})
click to toggle source
Calls superclass method
# File lib/intacct_ruby/functions/create_gltransaction.rb, line 10 def initialize(attrs = {}) super "create_gltransaction (#{attrs[:description]} #{timestamp})", attrs end
Public Instance Methods
to_xml()
click to toggle source
Calls superclass method
# File lib/intacct_ruby/functions/create_gltransaction.rb, line 15 def to_xml super do |xml| xml.create_gltransaction do xml << gltransaction_header_params(@attrs) xml.gltransactionentries do xml << gltransactionentry_params(@attrs[:gltransactionentries]) end end end end