Sha256: e3643fb37b0943d4c88b0b441a43f293efb6cad519b7c32c54fa0a4c178f1570

Contents?: true

Size: 304 Bytes

Versions: 10

Compression:

Stored size: 304 Bytes

Contents

class Admin::TaxCategoriesController < Admin::ResourceController

  def index
    if Spree::Config[:show_price_inc_vat] and (TaxCategory.where(:is_default => true).count != 1)
      flash.notice = "You should configure exactly one default category with your countries default tax rate"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_core-0.70.7 app/controllers/admin/tax_categories_controller.rb
spree_core-0.70.6 app/controllers/admin/tax_categories_controller.rb
spree_core-0.70.5 app/controllers/admin/tax_categories_controller.rb
spree_core-0.70.4 app/controllers/admin/tax_categories_controller.rb
spree_core-0.70.3 app/controllers/admin/tax_categories_controller.rb
spree_core-0.70.2 app/controllers/admin/tax_categories_controller.rb
spree_core-0.70.1 app/controllers/admin/tax_categories_controller.rb
spree_core-0.70.0 app/controllers/admin/tax_categories_controller.rb
spree_core-0.70.0.rc2 app/controllers/admin/tax_categories_controller.rb
spree_core-0.70.RC1 app/controllers/admin/tax_categories_controller.rb