sales and orders methods updates

This commit is contained in:
Min Zeya Phyo
2017-04-11 13:51:09 +08:00
parent 225ebdb7ef
commit 5b1bb6f6cd
10 changed files with 150 additions and 9 deletions

View File

@@ -31,15 +31,17 @@ Rails.application.routes.draw do
resources :orders, only: [:create, :show, :update]
#Current active bookings
resources :bookings, only: [:index, :create, :update]
resources :customers, only: [:index, :show, :create]
resources :customers, only: [:index, :show, :create, :update]
#Generating Invoice and making payments
resources :invoices, only: [:create, :show, :update :show ] do
resources :payments, only: [:create]
resources :invoices, only: [:create, :show, :update ] do
resources :payments, only: [:create, :update]
end
end
#--------- Cashier ------------#
namespace :cashier do
#bookings
#orders
#invoices
#payment