From 0e76d8e04c82d9c54ca9226bf08cc1bc23d4378b Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Thu, 20 Jul 2023 13:55:17 +0900 Subject: [PATCH] =?UTF-8?q?=E5=8D=98=E5=93=81=E3=81=AF=E3=81=8C=E3=81=8D?= =?UTF-8?q?=E3=83=80=E3=82=A6=E3=83=B3=E3=83=AD=E3=83=BC=E3=83=89=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PDFDownLoadManagerHelloTechno.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/app/Logic/ReceiptIssuingOrder/Custom/HelloTechno/PDFDownLoadManagerHelloTechno.php b/app/Logic/ReceiptIssuingOrder/Custom/HelloTechno/PDFDownLoadManagerHelloTechno.php index fc7af37..19fad8c 100644 --- a/app/Logic/ReceiptIssuingOrder/Custom/HelloTechno/PDFDownLoadManagerHelloTechno.php +++ b/app/Logic/ReceiptIssuingOrder/Custom/HelloTechno/PDFDownLoadManagerHelloTechno.php @@ -7,6 +7,7 @@ use App\Models\ReceiptIssuingHTParkingCustomOrder; use App\Models\ReceiptIssuingOrder; use App\Util\DateUtil; use Illuminate\Database\Eloquent\Collection; +use LogicException; use PDF; class PDFDownLoadManagerHelloTechno extends PDFDownLoadManager @@ -41,6 +42,20 @@ class PDFDownLoadManagerHelloTechno extends PDFDownLoadManager return $this; } + /** + * @override + */ + public function downlaodLetter() + { + if ($this->initialized === false) { + throw new LogicException("初期化不良"); + } + + $data = new Collection([$this->order]); + + return $this->downlaodLetters($data); + } + /** * @param Collection $list */ @@ -60,10 +75,6 @@ class PDFDownLoadManagerHelloTechno extends PDFDownLoadManager ->setOption('page-width', 100) ->setOption('encoding', 'utf-8') ->inline(); - - - - return $ret; }