Sha256: 363d31021d40b4e1a91e0d735ab2bacada2a0e9d61c0f9f784b2f867d8ac94a1
Contents?: true
Size: 1.63 KB
Versions: 46
Compression:
Stored size: 1.63 KB
Contents
# FIXME: it's possible I got currency for some fields wrong. class Gillbus class Commission extend Fields include UpdateAttrs # Collecting type field :type # Symbolic collecting code field :code # Collecting description field :description # type of commission according to tariff # (1 - inside tariff, 2 - outside of tariff, 3 - inside of tariff type II) # NB: only in ALL_COMMISSIONS field :in_out_type # Value of collecting in sale currency field :value, :sale_money # VAT rate field :vat_value # Value of collecting VAT in sale currency field :vat, :sale_money # Collecting currency field :currency # Exchange rate of collecting to sale currency field :rate # Value of collecting in currency in which it is brought field :value_in_currency, :collecting_money # Value of collecting VAT in currency in which it is brought field :vat_in_currency, :collecting_money # The return amount from collecting in sale currency (w/o VAT) field :return_value, :sale_money # The return amount from collecting VAT in sale currency field :return_vat, :sale_money # The return amount from collecting in currency in which it is brought (w/o VAT) field :return_value_in_currency, :collecting_money # The return amount from collecting VAT in currency in which it is brought. field :return_vat_in_currency, :collecting_money parser do def sale_money(val) Monetize.parse(val, @parent.sale_cur_code) end def collecting_money(val) Monetize.parse(val, doc['CURRENCY']) end end end end
Version data entries
46 entries across 46 versions & 1 rubygems