FIX_CLIENT REQUEST
This commit is contained in:
parent
bf7e27f33e
commit
2617911d2e
@ -997,12 +997,12 @@ public function create_or_update_subscription($invoice_id,$invoice_status, $msg_
|
||||
$filename = 'invoice_' . $data[0]->invoice_number.'.pdf'; // Filename based on invoice number
|
||||
// $mpdf->Output($filename . '.pdf', 'D'); // Generate and download the PDF with the specified filename
|
||||
$mpdf->Output($filename, 'D'); // Generate and download the PDF with the specified filename
|
||||
header('Content-Type: application/pdf');
|
||||
header('Content-Disposition: inline; filename="invoice_' . $data[0]->invoice_number . '.pdf"');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Accept-Ranges: bytes');
|
||||
header('Cache-Control: private');
|
||||
header('Pragma: private');
|
||||
// header('Content-Type: application/pdf');
|
||||
// header('Content-Disposition: inline; filename="invoice_' . $data[0]->invoice_number . '.pdf"');
|
||||
// header('Content-Transfer-Encoding: binary');
|
||||
// header('Accept-Ranges: bytes');
|
||||
// header('Cache-Control: private');
|
||||
// header('Pragma: private');
|
||||
exit();
|
||||
// Set headers to force download with the correct filename
|
||||
|
||||
|
||||
@ -665,12 +665,12 @@ if (isset($invoice_item_details[0]['to_subscription']) && !empty($invoice_item_d
|
||||
<span id="emailValidationMessage"></span>
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label for="cus_mobile_no" class="col-form-label">Mobile<span class="text-danger"> *</span></label>
|
||||
<label for="cus_mobile_no" class="col-form-label">Mobile</span></label>
|
||||
<div class="input-group mb-2">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text">+91</div>
|
||||
</div>
|
||||
<input type="text" class="form-control" id="cus_mobile_no" placeholder="Mobile Number (Enter only numbers)" maxlength="10" onkeypress="return restriction(event)" onchange="checkExisting(this.value,'mobile_no','cus_mobile_no')" required/>
|
||||
<input type="text" class="form-control" id="cus_mobile_no" placeholder="Mobile Number (Enter only numbers)" maxlength="10" onkeypress="return restriction(event)" onchange="checkExisting(this.value,'mobile_no','cus_mobile_no')"/>
|
||||
</div>
|
||||
<span id="mobileValidationMessage"></span>
|
||||
</div>
|
||||
@ -1975,12 +1975,11 @@ if (isset($invoice_item_details[0]['to_subscription']) && !empty($invoice_item_d
|
||||
let missingFieldsMessage = '';
|
||||
|
||||
// Validate required fields
|
||||
if (!cus_first_name) missingFieldsMessage += "Name\n";
|
||||
if (!cus_mobile_no) missingFieldsMessage += "Mobile No.\n";
|
||||
if (!cus_first_name) missingFieldsMessage += "Name Field is Required\n";
|
||||
|
||||
// If there are missing fields, show an alert
|
||||
if (missingFieldsMessage) {
|
||||
alert("Please fill in the following required fields:\n\n" + missingFieldsMessage);
|
||||
//alert(missingFieldsMessage);
|
||||
return; // Stop execution
|
||||
}
|
||||
|
||||
|
||||
BIN
invoice_2024-2025-00000361.pdf
Normal file
BIN
invoice_2024-2025-00000361.pdf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user