fixed conflict request_bill_con and origami index

This commit is contained in:
Aung Myo
2017-06-07 16:48:28 +06:30
28 changed files with 264 additions and 115 deletions

View File

@@ -68,12 +68,16 @@ Rails.application.routes.draw do
namespace :origami do
root "home#index"
get "/:booking_id" => "home#show" do #origami/:booking_id will show
resources :payments, only: [:index, :new, :create ] #add payment by payment_method
resources :discounts, only: [:index,:new, :create ] #add discount type
resources :customers, only: [:index,:new, :create ] #add customer type
end
resources :request_bills, only: [:show]
get 'sale/:sale_id/payment' => 'request_bills#show'
get 'sale/:sale_id/payment' => 'payments#show'
post 'payment_process' => 'payments#create'
get 'sale/:sale_id/payment/credit_payment' => "credit_payments#index"
get 'sale/:sale_id/payment/others_payment' => "others_payments#index"
end
#--------- Waiter/Ordering Station ------------#