From f78705c22f8d013d409a4856c7eacdc458f0973e Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Fri, 24 Jan 2025 15:00:31 +0530 Subject: [PATCH] FIX_REQUIRED_FIELDS_IN_SUBSCRIPTION --- app/Controllers/Payment.php | 3 ++- app/Views/invoice_form.php | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Controllers/Payment.php b/app/Controllers/Payment.php index 52fe000d..83eb7c06 100644 --- a/app/Controllers/Payment.php +++ b/app/Controllers/Payment.php @@ -167,7 +167,8 @@ public function payment_success() { $parts = explode('_', $ORDER_ID); $customer_id = (int)$parts[0]; $past_membership_id = $parts[1]; - $payment_method = $this->request->getVar('PAYMENTMODE'); + // $payment_method = $this->request->getVar('PAYMENTMODE'); + $payment_method = 'paytm'; //dd($past_membership_id); // $parts = explode('_', $ORDER_ID); // $customer_id = (int)$parts[0]; diff --git a/app/Views/invoice_form.php b/app/Views/invoice_form.php index 8d1fc095..e09ac5cd 100755 --- a/app/Views/invoice_form.php +++ b/app/Views/invoice_form.php @@ -219,7 +219,7 @@ if (isset($invoice_item_details[0]['to_subscription']) && !empty($invoice_item_d
- >
@@ -1650,9 +1650,9 @@ if (isset($invoice_item_details[0]['to_subscription']) && !empty($invoice_item_d text2 = cm[0].status == 0 ? " - Expried" : ""; $(".subscribedetails").show(); // Change this line to use the class selector let messages = "Earlier Membership :
"; - for (let i = 0; i < cm.length; i++) { + for (let i = 0; i < cm.length; i++) {console.log(typeof cm[i].to_subscription); let text1 = cm[i].is_renew > 1 ? " - Renewed" : ""; - let text2 = cm[i].invoice_status != 'Approved' ? " - Draft" : ""; + let text2 = cm[i].invoice_status == 'Approved' ? "" :" - Draft"; let text3 = cm[i].status == 0 ? ' - Expired ': " - Active"; messages += cm[i].title + "
( From: " + cm[i].formatted_from_subscription + " To: " + cm[i].formatted_to_subscription + " )" + text1 + text2 + text3+ "
"; }