Sha256: b86fd64f4b84ba98c15abf2593b055cb85fdf5039c6ed31a4ea2a26a63834dd5

Contents?: true

Size: 303 Bytes

Versions: 7

Compression:

Stored size: 303 Bytes

Contents

class Plugins::Ecommerce::TaxRate < CamaleonCms::TermTaxonomy
  default_scope { where(taxonomy: :ecommerce_tax_rate) }
  belongs_to :site, :class_name => "CamaleonCms::Site", foreign_key: :parent_id
  scope :actives, -> {where(status: '1')}

  def the_name
    "#{name} (#{options[:rate]}%)"
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
camaleon_ecommerce-2.0.4 app/models/plugins/ecommerce/tax_rate.rb
camaleon_ecommerce-2.0.3 app/models/plugins/ecommerce/tax_rate.rb
camaleon_ecommerce-2.0.2 app/models/plugins/ecommerce/tax_rate.rb
camaleon_ecommerce-2.0.1 app/models/plugins/ecommerce/tax_rate.rb
camaleon_ecommerce-2.0.0 app/models/plugins/ecommerce/tax_rate.rb
camaleon_ecommerce-1.2.1 app/models/plugins/ecommerce/tax_rate.rb
camaleon_ecommerce-1.2 app/models/plugins/ecommerce/tax_rate.rb