Sha256: 4decc6be2a6a7ed1166becb10da60240aa97aa4ca4a1fb175b3b3e138b30418f
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 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 # Value of collecting in sale currency field :value, :money # VAT rate field :vat_value # Value of collecting VAT in sale currency field :vat, :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, :money # Value of collecting VAT in currency in which it is brought field :vat_in_currency, :money # The return amount from collecting in sale currency (w/o VAT) field :return_value, :money # The return amount from collecting VAT in sale currency field :return_vat, :money # The return amount from collecting in currency in which it is brought (w/o VAT) field :return_value_in_currency, :money # The return amount from collecting VAT in currency in which it is brought. field :return_vat_in_currency, :money parser do def money(val) Monetize.parse(val, doc['CURRENCY']) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gillbus-0.15.7 | lib/gillbus/structs/commission.rb |
gillbus-0.15.6 | lib/gillbus/structs/commission.rb |