class Pohoda::Parsers::Pri::PrijemkaItemType
Public Instance Methods
acc()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 111 def acc at 'pri:acc' end
acc_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 115 def acc_attributes attributes_at 'pri:acc' end
activity()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 123 def activity submodel_at(Typ::RefType, 'pri:activity') end
centre()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 119 def centre submodel_at(Typ::RefType, 'pri:centre') end
code()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 95 def code at 'pri:code' end
code_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 99 def code_attributes attributes_at 'pri:code' end
coefficient()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 39 def coefficient at 'pri:coefficient' end
coefficient_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 43 def coefficient_attributes attributes_at 'pri:coefficient' end
contract()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 127 def contract submodel_at(Typ::RefType, 'pri:contract') end
discount_percentage()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 71 def discount_percentage at 'pri:discountPercentage' end
discount_percentage_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 75 def discount_percentage_attributes attributes_at 'pri:discountPercentage' end
expiration_date()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 131 def expiration_date at 'pri:expirationDate' end
expiration_date_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 135 def expiration_date_attributes attributes_at 'pri:expirationDate' end
foreign_currency()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 83 def foreign_currency submodel_at(Typ::TypeCurrencyForeignItem, 'pri:foreignCurrency') end
home_currency()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 79 def home_currency submodel_at(Typ::TypeCurrencyHomeItem, 'pri:homeCurrency') end
id()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 7 def id at 'pri:id' end
id_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 11 def id_attributes attributes_at 'pri:id' end
link_to_stock()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 107 def link_to_stock submodel_at(Typ::LinkToStockType, 'pri:linkToStock') end
note()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 87 def note at 'pri:note' end
note_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 91 def note_attributes attributes_at 'pri:note' end
parameters()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 139 def parameters array_of_at(Typ::ParameterDocType, ['pri:parameters', 'typ:parameter']) end
pay_vat()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 47 def pay_vat at 'pri:payVAT' end
pay_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 51 def pay_vat_attributes attributes_at 'pri:payVAT' end
percent_vat()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 63 def percent_vat at 'pri:percentVAT' end
percent_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 67 def percent_vat_attributes attributes_at 'pri:percentVAT' end
quantity()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 23 def quantity at 'pri:quantity' end
quantity_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 27 def quantity_attributes attributes_at 'pri:quantity' end
rate_vat()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 55 def rate_vat at 'pri:rateVAT' end
rate_vat_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 59 def rate_vat_attributes attributes_at 'pri:rateVAT' end
stock_item()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 103 def stock_item submodel_at(Typ::StockItemType, 'pri:stockItem') end
text()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 15 def text at 'pri:text' end
text_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 19 def text_attributes attributes_at 'pri:text' end
to_h()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 143 def to_h hash = {} hash[:attributes] = attributes hash[:id] = id if has? 'pri:id' hash[:id_attributes] = id_attributes if has? 'pri:id' hash[:text] = text if has? 'pri:text' hash[:text_attributes] = text_attributes if has? 'pri:text' hash[:quantity] = quantity if has? 'pri:quantity' hash[:quantity_attributes] = quantity_attributes if has? 'pri:quantity' hash[:unit] = unit if has? 'pri:unit' hash[:unit_attributes] = unit_attributes if has? 'pri:unit' hash[:coefficient] = coefficient if has? 'pri:coefficient' hash[:coefficient_attributes] = coefficient_attributes if has? 'pri:coefficient' hash[:pay_vat] = pay_vat if has? 'pri:payVAT' hash[:pay_vat_attributes] = pay_vat_attributes if has? 'pri:payVAT' hash[:rate_vat] = rate_vat if has? 'pri:rateVAT' hash[:rate_vat_attributes] = rate_vat_attributes if has? 'pri:rateVAT' hash[:percent_vat] = percent_vat if has? 'pri:percentVAT' hash[:percent_vat_attributes] = percent_vat_attributes if has? 'pri:percentVAT' hash[:discount_percentage] = discount_percentage if has? 'pri:discountPercentage' hash[:discount_percentage_attributes] = discount_percentage_attributes if has? 'pri:discountPercentage' hash[:home_currency] = home_currency.to_h if has? 'pri:homeCurrency' hash[:foreign_currency] = foreign_currency.to_h if has? 'pri:foreignCurrency' hash[:note] = note if has? 'pri:note' hash[:note_attributes] = note_attributes if has? 'pri:note' hash[:code] = code if has? 'pri:code' hash[:code_attributes] = code_attributes if has? 'pri:code' hash[:stock_item] = stock_item.to_h if has? 'pri:stockItem' hash[:link_to_stock] = link_to_stock.to_h if has? 'pri:linkToStock' hash[:acc] = acc if has? 'pri:acc' hash[:acc_attributes] = acc_attributes if has? 'pri:acc' hash[:centre] = centre.to_h if has? 'pri:centre' hash[:activity] = activity.to_h if has? 'pri:activity' hash[:contract] = contract.to_h if has? 'pri:contract' hash[:expiration_date] = expiration_date if has? 'pri:expirationDate' hash[:expiration_date_attributes] = expiration_date_attributes if has? 'pri:expirationDate' hash[:parameters] = parameters.map(&:to_h) if has? 'pri:parameters' hash end
unit()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 31 def unit at 'pri:unit' end
unit_attributes()
click to toggle source
# File lib/pohoda/parsers/pri/prijemka_item_type.rb, line 35 def unit_attributes attributes_at 'pri:unit' end