update table box
This commit is contained in:
@@ -98,7 +98,7 @@ scope "(:locale)", locale: /en|mm/ do
|
||||
resources :customers #add customer type
|
||||
end
|
||||
post 'moving' => "movetable#moving"
|
||||
get "/table/:table_id/sale/:sale_id/edit" => "sale_edit#edit"
|
||||
get "/table/:table_id/sale/:sale_id/:type/edit" => "sale_edit#edit"
|
||||
post 'item_void' => "sale_edit#item_void"
|
||||
post 'item_foc' => "sale_edit#item_foc"
|
||||
post 'item_edit' => "sale_edit#item_edit"
|
||||
@@ -124,11 +124,11 @@ scope "(:locale)", locale: /en|mm/ do
|
||||
# post '/:booking_id' => 'home#item_show'
|
||||
|
||||
# Other Charges
|
||||
get "/:sale_id/other_charges" => "other_charges#index"
|
||||
get "/:sale_id/:type/other_charges" => "other_charges#index"
|
||||
post "/:sale_id/other_charges" => "other_charges#create"
|
||||
|
||||
# Discount
|
||||
get "/:id/discount" => "discounts#index"
|
||||
get "/:id/:type/discount" => "discounts#index"
|
||||
post "/:id/discount" => "discounts#create"
|
||||
get "/:id/remove_all_discount" => "discounts#remove_all_discount"
|
||||
post "/:id/remove_discount_items" => "discounts#remove_discount_items"
|
||||
@@ -191,9 +191,9 @@ scope "(:locale)", locale: /en|mm/ do
|
||||
|
||||
#---------Add Customer --------------#
|
||||
#resources :customers
|
||||
get '/:sale_id/customers', to: "customers#add_customer"
|
||||
get '/:sale_id/:type/customers', to: "customers#add_customer"
|
||||
get '/:customer_id/get_customer' => 'home#get_customer', :as => "show_customer_details"
|
||||
post '/:sale_id/update_sale', to: "customers#update_sale_by_customer" # update customer id in sale table
|
||||
post '/:sale_id/:type/update_sale', to: "customers#update_sale_by_customer" # update customer id in sale table
|
||||
|
||||
post '/:sale_id/get_customer' => "customers#get_customer"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user