credit payment for quick service

This commit is contained in:
phyusin
2018-07-11 18:32:09 +06:30
parent c67655d1f3
commit c4ab456176
23 changed files with 666 additions and 119 deletions

View File

@@ -289,7 +289,8 @@ scope "(:locale)", locale: /en|mm/ do
#credit payment routes
post '/:type/credit_sales' => "dashboard#get_credit_sales", :as => "get_credit_sales", :defaults => { :format => 'json' }
get '/:type/credit_sales/:sale_id' => "credit_sales#show"
get '/cashier/credit_sales/:sale_id' => "credit_sales#show"
get '/quick_service/credit_sales/:sale_id' => "pending_order#credit_sale"
get 'sale/:sale_id/:type/credit_payment' => "payments#show"
post 'credit_payment/cash' => 'payments#create'
@@ -298,27 +299,27 @@ scope "(:locale)", locale: /en|mm/ do
post 'credit_payment/master' => "master#create"
post 'credit_payment/visa' => "visa#create"
post 'credit_payment/unionpay' => "unionpay#create"
post 'credit_payment/paypar' => 'paypar_payments#create'
post 'credit_payment/voucher' => 'voucher_payments#create'
post 'credit_payment/paymal' => 'paymal#create'
# post 'credit_payment/paypar' => 'paypar_payments#create'
# post 'credit_payment/voucher' => 'voucher_payments#create'
# post 'credit_payment/paymal' => 'paymal#create'
post 'credit_payment/alipay' => 'alipay#create'
post 'credit_payment/junctionpay' => 'junction_pay#create'
post 'credit_payment/dinga' => 'dinga#create'
post 'credit_payment/gift_voucher' => 'gift_voucher#create'
# post 'credit_payment/junctionpay' => 'junction_pay#create'
# post 'credit_payment/dinga' => 'dinga#create'
# post 'credit_payment/gift_voucher' => 'gift_voucher#create'
get 'sale/:sale_id/:type/credit_payment/others_payment' => "others_payments#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/MPU' => "mpu#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/VISA' => "visa#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/Master' => "master#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/JCB' => "jcb#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/PAYMAL' => "paymal#index"
# get 'sale/:sale_id/:type/credit_payment/others_payment/PAYMAL' => "paymal#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/UNIONPAY' => "unionpay#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/Redeem' => "redeem_payments#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/Voucher' => "voucher#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/JunctionPay' => "junction_pay#index"
# get 'sale/:sale_id/:type/credit_payment/others_payment/Redeem' => "redeem_payments#index"
# get 'sale/:sale_id/:type/credit_payment/others_payment/Voucher' => "voucher#index"
# get 'sale/:sale_id/:type/credit_payment/others_payment/JunctionPay' => "junction_pay#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/Alipay' => "alipay#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/DINGA' => "dinga#index"
get 'sale/:sale_id/:type/credit_payment/others_payment/GiftVoucher' => "gift_voucher#index"
# get 'sale/:sale_id/:type/credit_payment/others_payment/DINGA' => "dinga#index"
# get 'sale/:sale_id/:type/credit_payment/others_payment/GiftVoucher' => "gift_voucher#index"
end
#--------- Waiter/Ordering Station ------------#