FIX_Mobile Number for live customer check purpose : ps
This commit is contained in:
parent
c37ba573b1
commit
f3215236ce
@ -131,7 +131,7 @@ public function getJoinedData($where, $orderby = [])
|
||||
->join('business as B', 'B.business_id = I.business_id', 'left')
|
||||
->join('users as U1', 'U1.user_id = I.created_by', 'left')
|
||||
->join('users as U2', 'U2.user_id = I.updated_by', 'left')
|
||||
->select('I.invoice_id,I.wp_api_order_id,I.invoice_number, I.customer_id,CONCAT_WS(" ", C.first_name, C.last_name) as customer_name , I.invoice_date, I.due_date, I.subtotal, I.tax, I.discount, I.total_amount,I.status, I.payment_status, I.order_number, I.payment_method,I.invoice_type, I.event_id,E.event_name, I.business_id,B.title as business_name,DATE_FORMAT(I.created_on, "%d/%m/%Y") as created_on_format,I.created_on, I.created_by,CONCAT_WS(" ", U1.first_name, U1.last_name) as created_by_name,DATE_FORMAT(I.updated_on, "%d/%m/%Y") as updated_on_format, I.updated_by,CONCAT_WS(" ", U2.first_name, U2.last_name) as updated_by_name, I.isactive,C.email as customer_email,C.mobile_no as customer_mobile,I.shipping_address_id,I.shipping_address,I.billing_address_id,I.billing_address,B.address as business_address,B.city as business_city,B.state as business_state,B.postal_code as business_postal_code,B.email as business_email,B.mobile_no as business_mobile_no,S.from_subscription,S.to_subscription,DATEDIFF(S.to_subscription, S.from_subscription) as subscription_in_days,S.scheme_id')
|
||||
->select('I.invoice_id,I.wp_api_order_id,I.invoice_number, I.customer_id,CONCAT_WS(" ", C.first_name, C.last_name) as customer_name ,C.mobile_no, I.invoice_date, I.due_date, I.subtotal, I.tax, I.discount, I.total_amount,I.status, I.payment_status, I.order_number, I.payment_method,I.invoice_type, I.event_id,E.event_name, I.business_id,B.title as business_name,DATE_FORMAT(I.created_on, "%d/%m/%Y") as created_on_format,I.created_on, I.created_by,CONCAT_WS(" ", U1.first_name, U1.last_name) as created_by_name,DATE_FORMAT(I.updated_on, "%d/%m/%Y") as updated_on_format, I.updated_by,CONCAT_WS(" ", U2.first_name, U2.last_name) as updated_by_name, I.isactive,C.email as customer_email,C.mobile_no as customer_mobile,I.shipping_address_id,I.shipping_address,I.billing_address_id,I.billing_address,B.address as business_address,B.city as business_city,B.state as business_state,B.postal_code as business_postal_code,B.email as business_email,B.mobile_no as business_mobile_no,S.from_subscription,S.to_subscription,DATEDIFF(S.to_subscription, S.from_subscription) as subscription_in_days,S.scheme_id')
|
||||
->where($where);
|
||||
// if (!empty($orderby)) {
|
||||
// $query->orderBy($orderby[0], $orderby[1]);
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
<tr>
|
||||
<th hidden></th>
|
||||
<th>Member Name</th>
|
||||
<th>Member's Mobile</th>
|
||||
<th>From Subscription</th>
|
||||
<th>To Subscription</th>
|
||||
<th>Short-Code</th>
|
||||
@ -46,7 +47,6 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
// print_r($invoice);
|
||||
foreach ($invoice as $row) :
|
||||
$invoice_date = date('d/m/Y', strtotime($row['invoice_date']));
|
||||
$from_date = date('d/m/Y', strtotime($row['from_subscription']));
|
||||
@ -87,6 +87,7 @@
|
||||
<tr>
|
||||
<td hidden><?= $row['invoice_date'] ?></td>
|
||||
<td data-order="<?= $row['customer_name']; ?>"><?= $row['customer_name']; ?></td>
|
||||
<td data-order="<?= $row['mobile_no']; ?>"><?= $row['mobile_no']; ?></td>
|
||||
<td data-order="<?= strtotime($row['from_subscription']); ?>"><?= $from_date; ?></td>
|
||||
<td data-order="<?= strtotime($row['to_subscription']); ?>"><?= $to_date; ?></td>
|
||||
<td data-order="<?= $row['scheme_code']; ?>"><?= $row['scheme_code']; ?></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user