api discount and change tax
This commit is contained in:
@@ -56,10 +56,6 @@ scope "(:locale)", locale: /en|mm/ do
|
||||
get 'get_tax_profiles' => "shops#get_tax_profiles"
|
||||
post 'verifications/update' => "verifications#update"
|
||||
|
||||
scope '/(:group_type)', defaults: { group_type: nil } do
|
||||
resources :tax_profiles, only: [:index]
|
||||
end
|
||||
|
||||
namespace :restaurant do
|
||||
get 'zones' => "zones#index"
|
||||
resources :menu, only: [:index, :show]
|
||||
@@ -97,8 +93,6 @@ scope "(:locale)", locale: /en|mm/ do
|
||||
end
|
||||
end
|
||||
|
||||
get "customers/get_by_account" => "customers#get_customer_by_account"
|
||||
|
||||
resources :customers
|
||||
|
||||
# get customer by phone
|
||||
@@ -109,6 +103,15 @@ scope "(:locale)", locale: /en|mm/ do
|
||||
#get customer last five orders
|
||||
get "get_customer_last_orders" => "customers#get_customer_last_orders"
|
||||
|
||||
post ":sale_id/discount" => "discounts#create"
|
||||
delete ":sale_id/discount" => "discounts#destroy"
|
||||
|
||||
scope ":group_type" do
|
||||
resources :tax_profiles, only: [:index]
|
||||
post ":sale_id/change_tax" => "change_tax#index"
|
||||
get "customers/get_by_account" => "customers#get_customer_by_account"
|
||||
end
|
||||
|
||||
#Generating Invoice and making payments - output render @sale
|
||||
resources :invoices, only: [:index, :show, :create, :update, :destroy] do
|
||||
resources :sale_items, only: [:create, :update, :destroy]
|
||||
|
||||
Reference in New Issue
Block a user