From e3b51e613709ff061492feda9a1529ae40f64883 Mon Sep 17 00:00:00 2001 From: Pyae Bhone Zaw Date: Thu, 19 Jun 2025 17:06:46 +0630 Subject: [PATCH] fix: conditional rendering mmqr in modal --- .../foodcourt/orders/_read_modal.html.erb | 19 +++++++++++-------- app/views/layouts/_read_modal.html.erb | 17 ++++++++++------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/app/views/foodcourt/orders/_read_modal.html.erb b/app/views/foodcourt/orders/_read_modal.html.erb index a1ed341c..3eadc4e7 100644 --- a/app/views/foodcourt/orders/_read_modal.html.erb +++ b/app/views/foodcourt/orders/_read_modal.html.erb @@ -170,16 +170,19 @@
-
-
- + <% mmqr_payment = PaymentMethodSetting.find_by(payment_method: 'MMQR')%> + <% if mmqr_payment&.present? && mmqr_payment&.is_active == 1 %> +
+
+ +
+
Click here to pay with MMQR
-
Click here to pay with MMQR
-
+
+ (Or) +
+ <% end %> -
- (Or) -
-
-
+ <% mmqr_payment = PaymentMethodSetting.find_by(payment_method: 'MMQR')%> + <% if mmqr_payment&.present? && mmqr_payment&.is_active == 1 %> +
+
+
+
Click here to pay with MMQR
-
Click here to pay with MMQR
-
+
+ (Or) +
+ <% end %> -
- (Or) -