class Xrechnung::Item
Public Instance Methods
to_xml(xml)
click to toggle source
noinspection RubyResolve
# File lib/xrechnung/item.rb, line 26 def to_xml(xml) xml.cac :Item do xml.cbc :Description, description xml.cbc :Name, name unless standard_item_identification_id.nil? xml.cac :StandardItemIdentification do xml.cbc :ID, standard_item_identification_id.id, schemeID: standard_item_identification_id.scheme_id end end xml.cac :CommodityClassification, commodity_classification classified_tax_category&.to_xml(xml, root_tag_name: :ClassifiedTaxCategory) end end