class Pohoda::Parsers::Vch::LiquidationItemType

Public Instance Methods

accounting() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 59
def accounting
  submodel_at(Typ::RefType, 'vch:accounting')
end
activity() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 75
def activity
  submodel_at(Typ::RefType, 'vch:activity')
end
centre() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 71
def centre
  submodel_at(Typ::RefType, 'vch:centre')
end
classification_kvdph() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 67
def classification_kvdph
  submodel_at(Typ::RefType, 'vch:classificationKVDPH')
end
classification_vat() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 63
def classification_vat
  submodel_at(Typ::ClassificationVATType, 'vch:classificationVAT')
end
contract() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 79
def contract
  submodel_at(Typ::RefType, 'vch:contract')
end
home_currency() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 39
def home_currency
  submodel_at(Typ::TypeCurrencyHomeItem2, 'vch:homeCurrency')
end
note() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 43
def note
  at 'vch:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 47
def note_attributes
  attributes_at 'vch:note'
end
pay_vat() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 23
def pay_vat
  at 'vch:payVAT'
end
pay_vat_attributes() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 27
def pay_vat_attributes
  attributes_at 'vch:payVAT'
end
quantity() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 15
def quantity
  at 'vch:quantity'
end
quantity_attributes() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 19
def quantity_attributes
  attributes_at 'vch:quantity'
end
rate_vat() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 31
def rate_vat
  at 'vch:rateVAT'
end
rate_vat_attributes() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 35
def rate_vat_attributes
  attributes_at 'vch:rateVAT'
end
sym_par() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 51
def sym_par
  at 'vch:symPar'
end
sym_par_attributes() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 55
def sym_par_attributes
  attributes_at 'vch:symPar'
end
text() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 7
def text
  at 'vch:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 11
def text_attributes
  attributes_at 'vch:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/vch/liquidation_item_type.rb, line 83
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:text] = text if has? 'vch:text'
  hash[:text_attributes] = text_attributes if has? 'vch:text'
  hash[:quantity] = quantity if has? 'vch:quantity'
  hash[:quantity_attributes] = quantity_attributes if has? 'vch:quantity'
  hash[:pay_vat] = pay_vat if has? 'vch:payVAT'
  hash[:pay_vat_attributes] = pay_vat_attributes if has? 'vch:payVAT'
  hash[:rate_vat] = rate_vat if has? 'vch:rateVAT'
  hash[:rate_vat_attributes] = rate_vat_attributes if has? 'vch:rateVAT'
  hash[:home_currency] = home_currency.to_h if has? 'vch:homeCurrency'
  hash[:note] = note if has? 'vch:note'
  hash[:note_attributes] = note_attributes if has? 'vch:note'
  hash[:sym_par] = sym_par if has? 'vch:symPar'
  hash[:sym_par_attributes] = sym_par_attributes if has? 'vch:symPar'
  hash[:accounting] = accounting.to_h if has? 'vch:accounting'
  hash[:classification_vat] = classification_vat.to_h if has? 'vch:classificationVAT'
  hash[:classification_kvdph] = classification_kvdph.to_h if has? 'vch:classificationKVDPH'
  hash[:centre] = centre.to_h if has? 'vch:centre'
  hash[:activity] = activity.to_h if has? 'vch:activity'
  hash[:contract] = contract.to_h if has? 'vch:contract'

  hash
end