others payment

This commit is contained in:
Nweni
2017-06-07 13:02:12 +06:30
parent c18b57eca8
commit 9a23716c23
7 changed files with 49 additions and 35 deletions

View File

@@ -68,14 +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/card_payment' => "card_payments#index"
get 'sale/:sale_id/payment/others_payment' => "others_payments#index"
end
#--------- Waiter/Ordering Station ------------#