fixed conflictfile
This commit is contained in:
@@ -72,32 +72,36 @@ Rails.application.routes.draw do
|
||||
#--------- Cashier ------------#
|
||||
namespace :origami do
|
||||
root "home#index"
|
||||
get "/:booking_id" => "home#show" do #origami/:booking_id will show
|
||||
resources :discounts, only: [:index,:new, :create ] #add discount type
|
||||
get "/:booking_id" => "home#index" do #origami/:booking_id will show
|
||||
# resources :discounts, only: [:index,:new, :create ] #add discount type
|
||||
resources :customers #add customer type
|
||||
end
|
||||
|
||||
get "/request_bills/:id" => "request_bills#print"
|
||||
get "/discount/:id" => "discounts#index"
|
||||
post "/discount" => "discounts#create"
|
||||
post '/:booking_id' => 'home#item_show'
|
||||
|
||||
get "/:id/discount" => "discounts#index"
|
||||
post "/:id/discount" => "discounts#create"
|
||||
|
||||
get "/:id/request_bills" => "request_bills#print"
|
||||
|
||||
#--------- Payment ------------#
|
||||
get 'sale/:sale_id/payment' => 'payments#show'
|
||||
post 'payment_process' => 'payments#create'
|
||||
post 'payment/cash' => 'payments#create'
|
||||
post 'paypar_payment_process' => 'paypar_payments#create'
|
||||
get 'sale/:sale_id/payment/credit_payment' => "credit_payments#index"
|
||||
get 'sale/:sale_id/payment/others_payment' => "others_payments#index"
|
||||
|
||||
# get 'sale/:sale_id/payment/others_payment/:payment_method' => "redeem_payments#index"
|
||||
|
||||
get 'sale/:sale_id/payment/others_payment/MPU' => "mpu#index"
|
||||
post 'payment/mpu' => "mpu#create"
|
||||
get 'sale/:sale_id/payment/others_payment/REDEEMREBATE' => "redeem_payments#index"
|
||||
|
||||
#---------Add Customer --------------#
|
||||
#resources :customers
|
||||
get '/:sale_id/add_customer', to: "customers#add_customer"
|
||||
get '/:customer_id/get_customer' => 'home#get_customer'
|
||||
post '/:sale_id/update_sale' , to: "home#update_sale_by_customer"#update customer id in sale table
|
||||
|
||||
# get 'sale/:sale_id/payment/others_payment/:payment_method' => "redeem_payments#index"
|
||||
get 'sale/:sale_id/payment/others_payment/MPU' => "mpu#index"
|
||||
post 'create_mpu_payment' => "mpu#create"
|
||||
get 'sale/:sale_id/payment/others_payment/REDEEMREBATE' => "redeem_payments#index"
|
||||
end
|
||||
|
||||
#--------- Waiter/Ordering Station ------------#
|
||||
@@ -164,7 +168,7 @@ Rails.application.routes.draw do
|
||||
resources :tax_profiles
|
||||
#lookups
|
||||
resources :lookups
|
||||
#orders
|
||||
#orders
|
||||
resources :orders
|
||||
#sales
|
||||
resources :sales
|
||||
@@ -196,12 +200,13 @@ Rails.application.routes.draw do
|
||||
|
||||
#--------- Reports Controller Sections ------------#
|
||||
namespace :reports do
|
||||
resources :sales, :only => [:index, :show]
|
||||
resources :orders, :only => [:index, :show]
|
||||
resources :customers, :only => [:index, :show]
|
||||
resources :products, :only => [:index, :show]
|
||||
resources :inventory, :only => [:index, :show]
|
||||
resources :employees, :only => [:index, :show]
|
||||
resources :receipt_no, :only => [:index, :show]
|
||||
# resources :sales, :only => [:index, :show]
|
||||
# resources :orders, :only => [:index, :show]
|
||||
# resources :customers, :only => [:index, :show]
|
||||
# resources :products, :only => [:index, :show]
|
||||
# resources :inventory, :only => [:index, :show]
|
||||
# resources :employees, :only => [:index, :show]
|
||||
end
|
||||
|
||||
#mount_compendium at: '/report' #, controller: 'reports'
|
||||
|
||||
Reference in New Issue
Block a user