Sha256: 208c5196885b2738e6a8f12945878239bbfe07e7e3141576fa98a2cd45b4ab6a

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

class VatRate < ChargeRate
  scope :full, where(:code => 'full')
  scope :reduced, where(:code => 'reduced')
  scope :special, where(:code => 'special')
  scope :excluded, where(:code => 'excluded')

  # String
  def to_s
    "%.1f%% (%s)" % [rate, I18n::translate(code, :scope => 'vat_rates.code')]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bookyt-0.0.1 app/models/vat_rate.rb