Files
sx-fc/app/controllers/api/shops_controller.rb
Myat Zin Wai Maw fae91f701b tax
2020-01-22 14:26:14 +06:30

15 lines
387 B
Ruby

class Api::ShopsController < Api::ApiController
skip_before_action :set_current_tenant_by_subdomain_or_first, only: [:index, :show]
def index
@shops = Shop.select('id,logo,name,shop_code,address,phone_no').all
end
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