tax profiles
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
class Api::ShopsController < Api::ApiController
|
||||
|
||||
skip_before_action :authenticate
|
||||
|
||||
def index
|
||||
@shops = Shop.select('id,logo,name,shop_code,address,phone_no').all
|
||||
end
|
||||
@@ -9,4 +7,7 @@ class Api::ShopsController < Api::ApiController
|
||||
def show
|
||||
@shop = Shop.find_by_shop_code(params[:id])
|
||||
end
|
||||
def get_tax_profiles
|
||||
@inclusive_tax,@exclusive_tax =TaxProfile.calculate_tax("online_order")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user