diff --git a/app/Controllers/Invoice.php b/app/Controllers/Invoice.php index 5db9e0d1..8610be81 100755 --- a/app/Controllers/Invoice.php +++ b/app/Controllers/Invoice.php @@ -808,7 +808,7 @@ public function create_or_update_subscription($invoice_id, $msg_flag_name = null $lineitem_html .= '
' . $inv->title . ' x ' . $inv->quantity . ' => ' . $inv->subtotal . '
'; } // print_r($title);die; - $records['subject'] = $invoice_serial_number . " - Approval Notification"; + $records['subject'] = $invoice_serial_number . " - Invoice Notification"; $records['description'] = " @@ -821,7 +821,7 @@ public function create_or_update_subscription($invoice_id, $msg_flag_name = null
THANKS FOR YOUR ORDER!!
-Order Number:#$invoice_serial_number
+Invoice Number:#$invoice_serial_number
Total Amount:$total_amount
diff --git a/app/Controllers/Notifications.php b/app/Controllers/Notifications.php index bd244e0f..3a73aa1b 100755 --- a/app/Controllers/Notifications.php +++ b/app/Controllers/Notifications.php @@ -637,7 +637,8 @@ class Notifications extends BaseController $emailContent = str_replace("{SCHEME_NAME}", $schemename, $emailContent); } if (isset($expirydate)) { - $emailContent = str_replace("{EXPIRY_DATE}", $expirydate, $emailContent); + $expiryon = $expirydate ? date('d/m/Y', strtotime($expirydate)) : ''; + $emailContent = str_replace("{EXPIRY_DATE}", $expiryon, $emailContent); } if (isset($membership_id)) { $emailContent = str_replace("{RENEWAL_LINK}", base_url() . 'subscription_renewal/' .'MEM'. $membership_id, $emailContent); @@ -734,7 +735,8 @@ class Notifications extends BaseController $whatsappContent = str_replace("{SCHEME_NAME}", $schemename, $whatsappContent); } if (isset($expirydate)) { - $whatsappContent = str_replace("{EXPIRY_DATE}", $expirydate, $whatsappContent); + $expiryon = $expirydate ? date('d/m/Y', strtotime($expirydate)) : ''; + $whatsappContent = str_replace("{EXPIRY_DATE}", $expiryon, $whatsappContent); } if (isset($customerId)) { $whatsappContent = str_replace("{RENEWAL_LINK}", base_url() . 'subscription_renewal/' . $customerId, $whatsappContent); @@ -1022,7 +1024,8 @@ class Notifications extends BaseController $notificationContent = str_replace("{SCHEME_NAME}", $dataPointsArray["scheme_name"], $notificationContent); } if (isset($dataPointsArray["formatted_due_date"])) { - $notificationContent = str_replace("{EXPIRY_DATE}", $dataPointsArray["formatted_due_date"], $notificationContent); + $expiryon = $dataPointsArray["formatted_due_date"] ? date('d/m/Y', strtotime($dataPointsArray["formatted_due_date"])) : ''; + $notificationContent = str_replace("{EXPIRY_DATE}", $expiryon, $notificationContent); } if (isset($dataPointsArray["customer_id"])) { $notificationContent = str_replace("{RENEWAL_LINK}", base_url() . 'subscription_renewal/' . $dataPointsArray["customer_id"], $notificationContent); diff --git a/app/Views/address_pdf_landscape_template.php b/app/Views/address_pdf_landscape_template.php index 97dc09b3..79d2891e 100755 --- a/app/Views/address_pdf_landscape_template.php +++ b/app/Views/address_pdf_landscape_template.php @@ -23,21 +23,14 @@ .from-address { text-align: left; float: left; - width: 60%; - - } - .order-number { - text-align: right; - float: right; - width: 40%; + width: 100%; } .to-address { float: right; - width: 30%; + width: 40%; clear: both; - margin-top: 20px; /* Adjust for spacing in landscape */ - /* padding-right: -200px; */ + /* margin-top: 20px; Adjust for spacing in landscape */ } @@ -45,6 +38,40 @@| From : | ++ invoice_number == $value->wp_api_order_id ? "Order Number :" : "Invoice Number :"; ?> + = $label; ?> = $value->invoice_number; ?> + | +