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