add tax profiles api

This commit is contained in:
Zin Moe
2020-07-14 17:56:45 +06:30
parent 495e47601a
commit 8ee27a9c35
5 changed files with 26 additions and 1 deletions

View File

@@ -8,6 +8,10 @@ class Api::ApiController < ActionController::API
# before_action :lookup_domain
helper_method :current_token, :current_login_employee, :get_cashier
def get_tax_profiles
@inclusive_tax, @exclusive_tax = TaxProfile.calculate_tax("online_order")
end
private
# ActionView::Rendering override render_to_body breaks render :json,
# resulting in an ActionView::MissingTemplate error.