Fix getting a filename for a bill's pdf.

This commit is contained in:
Pavel Mironchik 2021-01-03 17:03:57 +06:00
parent f67bb935ec
commit 7a834bf246

View File

@ -293,7 +293,7 @@ class Bills extends Controller
$pdf = app('dompdf.wrapper');
$pdf->loadHTML($html);
$file_name = $this->getBillFileName($bill);
$file_name = $this->getDocumentFileName($bill);
return $pdf->download($file_name);
}