diff --git a/app/Controllers/Invoice.php b/app/Controllers/Invoice.php index cc6e41cf..4d0f8aeb 100755 --- a/app/Controllers/Invoice.php +++ b/app/Controllers/Invoice.php @@ -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 diff --git a/app/Views/invoice_form.php b/app/Views/invoice_form.php index e3a24498..501f4cf4 100755 --- a/app/Views/invoice_form.php +++ b/app/Views/invoice_form.php @@ -665,12 +665,12 @@ if (isset($invoice_item_details[0]['to_subscription']) && !empty($invoice_item_d
- +
+91
- +
@@ -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 } diff --git a/invoice_2024-2025-00000361.pdf b/invoice_2024-2025-00000361.pdf new file mode 100644 index 00000000..8a85b0cf Binary files /dev/null and b/invoice_2024-2025-00000361.pdf differ