credit payment function
This commit is contained in:
@@ -289,8 +289,36 @@ 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_payment_id' => "credit_sales#show"
|
||||
get 'sale/:sale_payment_id/:type/credit_sales' => "payments#show"
|
||||
get '/:type/credit_sales/:sale_id' => "credit_sales#show"
|
||||
get 'sale/:sale_id/:type/credit_payment' => "payments#show"
|
||||
|
||||
post 'credit_payment/cash' => 'payments#create'
|
||||
post 'credit_payment/mpu' => "mpu#create"
|
||||
post 'credit_payment/jcb' => "jcb#create"
|
||||
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/alipay' => 'alipay#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/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/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"
|
||||
end
|
||||
|
||||
#--------- Waiter/Ordering Station ------------#
|
||||
|
||||
Reference in New Issue
Block a user