This commit is contained in:
Myat Zin Wai Maw
2019-12-13 10:40:36 +06:30
parent 949835ffdc
commit ce79038668
4 changed files with 25 additions and 17 deletions

View File

@@ -82,6 +82,9 @@ scope "(:locale)", locale: /en|mm/ do
#get customer details by order items
get "customers/get_order/:id" => "customers#get_customer_order"
#get customer last five orders
get "customers/get_orders/:customer_id" => "customers#get_customer_last_orders"
#Generating Invoice and making payments - output render @sale
resources :invoices, only: [:index, :show, :create, :update, :destroy] do
resources :sale_items, only: [:create, :update, :destroy]