Class: Xrechnung::LegalMonetaryTotal
- Inherits:
-
Object
- Object
- Xrechnung::LegalMonetaryTotal
show all
- Includes:
- MemberContainer
- Defined in:
- lib/xrechnung/legal_monetary_total.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
#[], #[]=, included, #initialize
Instance Attribute Details
23
|
# File 'lib/xrechnung/legal_monetary_total.rb', line 23
member :allowance_total_amount, type: Xrechnung::Currency, transform_value: transform_currency
|
27
|
# File 'lib/xrechnung/legal_monetary_total.rb', line 27
member :charge_total_amount, type: Xrechnung::Currency, transform_value: transform_currency
|
11
|
# File 'lib/xrechnung/legal_monetary_total.rb', line 11
member :line_extension_amount, type: Xrechnung::Currency, transform_value: transform_currency
|
39
|
# File 'lib/xrechnung/legal_monetary_total.rb', line 39
member :payable_amount, type: Xrechnung::Currency, transform_value: transform_currency
|
35
|
# File 'lib/xrechnung/legal_monetary_total.rb', line 35
member :payable_rounding_amount, type: Xrechnung::Currency, transform_value: transform_currency
|
31
|
# File 'lib/xrechnung/legal_monetary_total.rb', line 31
member :prepaid_amount, type: Xrechnung::Currency, transform_value: transform_currency
|
15
|
# File 'lib/xrechnung/legal_monetary_total.rb', line 15
member :tax_exclusive_amount, type: Xrechnung::Currency, transform_value: transform_currency
|
19
|
# File 'lib/xrechnung/legal_monetary_total.rb', line 19
member :tax_inclusive_amount, type: Xrechnung::Currency, transform_value: transform_currency
|
Instance Method Details
#to_xml(xml) ⇒ Object
42
43
44
45
46
47
48
49
|
# File 'lib/xrechnung/legal_monetary_total.rb', line 42
def to_xml(xml)
self.class.members.each_key do |name|
next if self[name].nil?
xml.cbc :"#{name.to_s.split('_').map(&:capitalize).join}", *self[name].xml_args
end
xml.target!
end
|