shift open/close
This commit is contained in:
@@ -70,6 +70,8 @@ Rails.application.routes.draw do
|
||||
|
||||
#--------- Cashier ------------#
|
||||
namespace :origami do
|
||||
resources :cash_ins, only:[:new, :create]
|
||||
resources :cash_outs, only:[:new, :create]
|
||||
root "home#index"
|
||||
get "table/:dining_id" => "home#show" do #origami/:booking_id will show
|
||||
# resources :discounts, only: [:index,:new, :create ] #add discount type
|
||||
@@ -98,7 +100,9 @@ Rails.application.routes.draw do
|
||||
get '/:sale_id/reprint' => 'payments#reprint' ,:defaults => { :format => 'json' }
|
||||
|
||||
#---------Shift ---------------#
|
||||
resources :shifts, only: [:index, :show, :new, :create, :edit, :update]
|
||||
resources :shifts, only: [:index, :new, :create, :edit]
|
||||
post 'close_shift' => 'shifts#update_shift'
|
||||
get 'shift/close' => 'shifts#show'
|
||||
#shift - index (open/close shift landing page)
|
||||
#shift - show (sales summary display)
|
||||
#shift - new (open shift)
|
||||
|
||||
Reference in New Issue
Block a user