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 = $('' + d + '');
+ }
+ });
- uniqueValues.each(function(d, j) {
- select.append('' + d + '');
- });
$('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 @@
= $row['first_name'].' ('.$row['role'].')'?> |
= $row['books_sold'] ?> |
= strtoupper($row['payment_method'])?> |
- = $row['total_amount'] ?> |
+ = $row['total_amount'] ?> |