From 0b134896d054357d7a989aa39e4751acf5c8af21 Mon Sep 17 00:00:00 2001 From: Srinivas-Saravanan Date: Thu, 19 Dec 2024 10:46:22 +0530 Subject: [PATCH] FIX_ALIGNMENT IN REPORTS --- app/Controllers/Customer.php | 6 +-- app/Views/invoice_form.php | 4 +- .../itemwise_report_with_payment_method.php | 6 +-- app/Views/received_payments_report.php | 4 +- app/Views/report_book_publish.php | 2 +- app/Views/report_expired_customers.php | 48 +++++++++++++------ app/Views/report_userwise_and_eventwise.php | 2 +- 7 files changed, 45 insertions(+), 27 deletions(-) diff --git a/app/Controllers/Customer.php b/app/Controllers/Customer.php index bc5c40bc..2e9aaf56 100755 --- a/app/Controllers/Customer.php +++ b/app/Controllers/Customer.php @@ -656,9 +656,9 @@ class Customer extends BaseController $shippingData = [ 'customer_id' => $this->request->getPost('customer_id'), - 'first_name' => $this->request->getPost('first_name'), - 'last_name' => $this->request->getPost('last_name'), - 'shipping_address1'=> $shipping_address_name . ','.$this->request->getPost('QS_address'), + 'first_name' => isset($shipping_address_name)?$shipping_address_name:$this->request->getPost('first_name'), + 'last_name' => '', + 'shipping_address1'=> $this->request->getPost('QS_address'), 'shipping_address2'=> '', 'shipping_country' => $this->request->getPost('QS_country'), 'shipping_state' => $this->request->getPost('QS_state'), diff --git a/app/Views/invoice_form.php b/app/Views/invoice_form.php index 253c6d2e..ad69d5c5 100755 --- a/app/Views/invoice_form.php +++ b/app/Views/invoice_form.php @@ -2503,7 +2503,7 @@ $('#saveButton').click(function() { var QS_AddressId = response['data']['shipping_addr_id']; if(QB_AddressId !== null ){ - var quick_billing_Address = QB_AddressLine + ','+QB_City + ',' + QB_State + ',' +QB_Country + '-' + QB_PostalCode + '.' ; + var quick_billing_Address =QB_AddressLine + ','+QB_City + ',' + QB_State + ',' +QB_Country + '-' + QB_PostalCode + '.' ; $('#storeBillingAddress').empty(); $('#storeBillingAddress').val(quick_billing_Address).prop("readonly", true); $('#hiddenBillingAddressId').val(QB_AddressId); @@ -2514,7 +2514,7 @@ $('#saveButton').click(function() { $('#storeShippingAddress').empty(); var new_QS_ShippingAddrOption = $(''); + } + }); - uniqueValues.each(function(d, j) { - select.append(''); - }); $('input', this).on('keyup change', function() { if (table.column(i).search() !== this.value) { diff --git a/app/Views/report_userwise_and_eventwise.php b/app/Views/report_userwise_and_eventwise.php index edd18d94..609045c6 100644 --- a/app/Views/report_userwise_and_eventwise.php +++ b/app/Views/report_userwise_and_eventwise.php @@ -53,7 +53,7 @@ - +