updated for api bill controller
This commit is contained in:
@@ -89,7 +89,7 @@ Rails.application.routes.draw do
|
||||
get 'room/:room_id' => 'rooms#show'
|
||||
get 'order/:order_id' => "orders#show"
|
||||
|
||||
post '/:booking_id' => 'home#item_show'
|
||||
# post '/:booking_id' => 'home#item_show'
|
||||
|
||||
get "/:id/discount" => "discounts#index"
|
||||
post "/:id/discount" => "discounts#create"
|
||||
@@ -98,6 +98,19 @@ Rails.application.routes.draw do
|
||||
|
||||
post "/:id/request_bills" => "request_bills#print",:as => "request_bill" ,:defaults => { :format => 'json' }
|
||||
get '/:sale_id/reprint' => 'payments#reprint' ,:defaults => { :format => 'json' }
|
||||
|
||||
#---------Shift ---------------#
|
||||
resources :shifts, only: [:index, :show, :new, :create, :edit, :update]
|
||||
#shift - index (open/close shift landing page)
|
||||
#shift - show (sales summary display)
|
||||
#shift - new (open shift)
|
||||
#shift - edit (close shift)
|
||||
|
||||
resources :cash_mgmt, only: [:new, :create]
|
||||
#payment - accepting or expending money from cashier - [Cash Journal]
|
||||
#payment - Incoming payments - [accept all payment types (cash, other payments (except rebate))
|
||||
#payment - Outing payments - Cash only [ *Misc expeness tracking]
|
||||
|
||||
#--------- Payment ------------#
|
||||
get 'sale/:sale_id/payment' => 'payments#show'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user