Fix issue with downloading PDF invoices

This commit is contained in:
Matt Young 2024-08-09 12:04:05 -05:00
parent 0a2a02bd5b
commit 60b7b9fc15
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class PdfInvoiceController extends Controller
} }
$this->grandTotal(); $this->grandTotal();
$this->output(); $this->output();
return redirect()->back(); exit();
} }
protected function newInvoicePage() protected function newInvoicePage()
@ -133,7 +133,7 @@ class PdfInvoiceController extends Controller
$this->pdf->Cell(2, .3, '$'.number_format($this->invoiceData['grandTotal'], 2), 1); $this->pdf->Cell(2, .3, '$'.number_format($this->invoiceData['grandTotal'], 2), 1);
} }
public function output($dest = 'I', $name = null) public function output($dest = 'D', $name = null)
{ {
if (! $name) { if (! $name) {
$name = auditionSetting('auditionAbbreviation').' Invoice for '.$this->school->name.'.pdf'; $name = auditionSetting('auditionAbbreviation').' Invoice for '.$this->school->name.'.pdf';