finished customer to sale assign in crm

This commit is contained in:
Aung Myo
2017-06-08 13:41:11 +06:30
parent 7f8d3381b2
commit 8a5fcadb69
11 changed files with 190 additions and 39 deletions

View File

@@ -93,9 +93,12 @@ Rails.application.routes.draw do
#--------- Customer Relationship Management ------------#
namespace :crm do
root "home#index" #queue number
get 'customers/:sale_id/assign_sale_id', to: "customers#get_sale_id", :as => "assign_sale"#get sale id with customer for crm
resources :customers
post "update_booking" , to: "bookings#update_booking", as: "update_booking"
get 'print/:id', to: "home#print"
post "update_booking" , to: "bookings#update_booking", as: "update_booking"#assign and cancel
post "update_sale" , to: "home#update_sale_by_customer"#update customer id in sale table
get '/print/:id', to: "home#print_order"#print order for crm
end
#--------- Order Queue Station ------------#