diff --git a/app/controllers/origami/mpu_controller.rb b/app/controllers/origami/mpu_controller.rb new file mode 100644 index 00000000..8918d705 --- /dev/null +++ b/app/controllers/origami/mpu_controller.rb @@ -0,0 +1,8 @@ +class Origami::MpuController < BaseOrigamiController + + def index + end + + def create + end +end diff --git a/app/views/origami/mpu/index.html.erb b/app/views/origami/mpu/index.html.erb new file mode 100644 index 00000000..6b339e0f --- /dev/null +++ b/app/views/origami/mpu/index.html.erb @@ -0,0 +1 @@ +Hello MPU diff --git a/app/views/origami/others_payments/index.html.erb b/app/views/origami/others_payments/index.html.erb index 2e0feb11..b5ef15ae 100644 --- a/app/views/origami/others_payments/index.html.erb +++ b/app/views/origami/others_payments/index.html.erb @@ -1,25 +1,20 @@
-
+
<% @payment_method_setting.each do |payment_method|%> -
- -
<%= payment_method.payment_method %>
- -
+
<%= payment_method.payment_method %>
<% end %>
-
-
diff --git a/config/routes.rb b/config/routes.rb index 91acd6a3..26c00d10 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ require 'sidekiq/web' Rails.application.routes.draw do - + namespace :settings do resources :membership_actions end @@ -85,8 +85,9 @@ Rails.application.routes.draw do post 'paypar_payment_process' => 'paypar_payments#create' get 'sale/:sale_id/payment/credit_payment' => "credit_payments#index" get 'sale/:sale_id/payment/others_payment' => "others_payments#index" - get 'sale/:sale_id/payment/others_payment/:payment_method' => "redeem_payments#index" - + # get 'sale/:sale_id/payment/others_payment/:payment_method' => "redeem_payments#index" + get 'sale/:sale_id/payment/others_payment/MPU' => "mpu#index" + get 'sale/:sale_id/payment/others_payment/REDIMREBATE' => "redeem_payments#index" end #--------- Waiter/Ordering Station ------------#