Append Order Detail view finished

This commit is contained in:
Aung Myo
2017-06-01 18:47:08 +06:30
parent f036274f5e
commit acbd8acf04
7 changed files with 166 additions and 65 deletions

View File

@@ -35,14 +35,20 @@ Rails.application.routes.draw do
post "bill/:booking_id" => "bill#create"
post "move" => "move#create"
#Order Controller
resources :orders, only: [:create, :show, :update] do
post "bill" => "bill#create"
end
#Current active bookings
resources :bookings, only: [:index, :show, :create, :update]
resources :customers, only: [:index, :show, :create, :update]
get "update_booking" , to: "bookings#update_booking", as: "update_booking"
#Generating Invoice and making payments - output render @sale
resources :invoices, only: [:index, :show, :create, :update, :destroy ] do
resources :sale_items, only:[:create, :update, :destroy]