FIX_SHIPPING ADDRESS LABEL NAME

This commit is contained in:
Srinivas-Saravanan 2024-12-18 17:10:56 +05:30
parent 4503fac53e
commit d2d591d13f
6 changed files with 27 additions and 21 deletions

View File

@ -196,8 +196,8 @@ class Customer extends BaseController
// $address_array[$x]['company'] = "";
$address_array[$x]['email'] = $requestData['cmail'];
$address_array[$x]['mobile_no'] = $requestData['cmobile'];
$saddress1_name = $requestData['saddress1_name'][0];
$address_array[$x]['address_1'] = $saddress1_name.','. $baddress1[$x];
$saddress1_name = $requestData['saddress1_name'][$x];
$address_array[$x]['address_1'] = $addressType == 1? $baddress1[$x]: $saddress1_name .','. $baddress1[$x];
$address_array[$x]['address_2'] = $baddress2[$x];
$address_array[$x]['city'] = $bcity[$x];
$address_array[$x]['state'] = $bcountry[$x] === 'IN' ? $bdropdownstate[$x] : $binputstate[$x] ;

View File

@ -1650,7 +1650,6 @@ public function create_or_update_subscription($invoice_id,$invoice_status, $msg_
public function getActiveMembers(){
$Invoice_Model = new InvoiceModel();
$response['data'] = $Invoice_Model->getActiveMembers();
// log_message('error',json_encode($response));die();
return $this->response->setJSON($response);
}

View File

@ -606,7 +606,7 @@ public function getActiveMembers(){
->join('customers as C', 'C.customer_id = S.customer_id', 'left')
->join('books as B', 'B.book_id = S.scheme_id', 'left')
->where('S.isactive', 1)
->where('S.status',1)
->where('S.to_subscription>now()')
->orderBy('S.to_subscription', 'ASC')
->get();
return $result->getResultArray();

View File

@ -219,7 +219,7 @@ if (isset($invoice_item_details[0]['to_subscription']) && !empty($invoice_item_d
<div class="form-group col-md-5">
<label for="loadShippingDropdown">Shipping Address<span class="text-danger"> *</span></label>
<select class="form-control" id="loadShippingDropdown" name="shipping_address_id" data-toggle="select2" onchange="get_customer_shipping_details(this.value)" required>
<select class="form-control" id="loadShippingDropdown" name="shipping_address_id" data-toggle="select2" onchange="get_customer_shipping_details(this.value)" >
<option value="">Select an address</option>
</select>
</div>
@ -2420,25 +2420,25 @@ $('#saveButton').click(function() {
var shipping_address_name = $('#shipping_name').val();
var isValid = true;
var errorMessage = 'Please fill in the following required fields:\n';
var errorMessage = 'Please fill in the following required fields:\n\n';
if (cus_id === '') {
errorMessage += 'Please Select the Customer.\n';
isValid = false;
}
if (QB_AddressLine === '') {
errorMessage += 'Billing address,\n';
errorMessage += 'Billing address,';
isValid = false;
}
if (QB_Country === '') {
errorMessage += 'Billing country,\n';
errorMessage += 'Billing country,';
isValid = false;
}
if (QB_State === '') {
errorMessage += 'Billing state,\n';
errorMessage += 'Billing state,';
isValid = false;
}
if (QB_City === '') {
errorMessage += 'Billing city,\n';
errorMessage += 'Billing city,';
isValid = false;
}
if (QB_PostalCode === '') {
@ -2446,23 +2446,23 @@ $('#saveButton').click(function() {
isValid = false;
}
if (QS_AddressLine === '') {
errorMessage += 'Shipping address,\n';
errorMessage += 'Shipping address,';
isValid = false;
}
if (QS_Country === '') {
errorMessage += 'Shipping country,\n';
errorMessage += 'Shipping country,';
isValid = false;
}
if (QS_State === '') {
errorMessage += 'Shipping state,\n';
errorMessage += 'Shipping state,';
isValid = false;
}
if (QS_City === '') {
errorMessage += 'Shipping city,\n';
errorMessage += 'Shipping city,';
isValid = false;
}
if (QS_PostalCode === '') {
errorMessage += 'Shipping postal.\n';
errorMessage += 'Shipping postal code.';
isValid = false;
}

View File

@ -367,7 +367,7 @@
</tr>
<?php endif; ?>
<tr>
<td colspan="6" style="width: 60%; vertical-align: top;">
<td colspan="6" style="width: 40%; vertical-align: top;">
<div>
<?php if ($value->status != 'Approved') : ?>
@ -383,13 +383,13 @@
</div>
</td>
<td colspan="6" style="width: 40%; vertical-align: bottom;">
<td colspan="6" style="width: 60%; vertical-align: bottom;">
<div class="terms-container">
<center>
<!-- <img src="<?php //echo base_url('public/uploads/default_sign_sm.png'); ?>" alt="Authorized Signatory" class="Authorized-Signatory"> -->
<div align = "right">
<!-- <div align = "right"> -->
<h6>Authorized Signatory</h6>
</div>
<!-- </div> -->
</center>
</div>
</td>

View File

@ -88,8 +88,10 @@ Sri Kasi, 12, M.V. Naidu Street, Chetpet,Chennai -
text: 'CSV',
title: '<?= $page_name?>',
exportOptions: {
columns: ':not(:first-child)'
}
columns: function (index, data, node) {
return index !== 0;
},
},
},
{
text: 'Active Members',
@ -104,6 +106,10 @@ Sri Kasi, 12, M.V. Naidu Street, Chetpet,Chennai -
targets: [1, 2, 3, 4, 5, 6],
orderable: false,
},
{
targets: 0,
visible: false,
}
]
@ -162,6 +168,7 @@ Sri Kasi, 12, M.V. Naidu Street, Chetpet,Chennai -
('0' + (to_subscription.getMonth() + 1)).slice(-2) + '/' +
to_subscription.getFullYear();
table.row.add([
item.sub_id,
item.first_name + ' ' + ((typeof item.last_name !== 'undefined' && item.last_name !== null) ? item.last_name : ''),
item.membership_id,
from_subscription_formatted,