tax profiles

This commit is contained in:
phyusin
2018-03-16 10:57:32 +06:30
parent 8cea60ec02
commit acc5d737fa
9 changed files with 36 additions and 4 deletions

View File

@@ -6,6 +6,8 @@ class Settings::TaxProfilesController < ApplicationController
# GET /settings/tax_profiles.json
def index
@settings_tax_profiles = TaxProfile.all
tax_profiles = Lookup.collection_of("tax_profiles")
end
# GET /settings/tax_profiles/1
@@ -73,6 +75,6 @@ class Settings::TaxProfilesController < ApplicationController
# Never trust parameters from the scary internet, only allow the white list through.
def settings_tax_profile_params
params.require(:tax_profile).permit(:name, :rate, :inclusive, :order_by, :created_by)
params.require(:tax_profile).permit(:name, :group_type, :rate, :inclusive, :order_by, :created_by)
end
end