From e7e91f64449c3eb6a294eab17db88377716db1c2 Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Fri, 28 Jul 2023 08:54:39 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=AF=E3=81=8C=E3=81=8D=E5=8D=B0=E5=AD=97?= =?UTF-8?q?=E3=81=AE=E3=82=BF=E3=82=A4=E3=83=9F=E3=83=B3=E3=82=B0=E3=81=A7?= =?UTF-8?q?=E6=8A=95=E5=87=BD=E5=AE=8C=E4=BA=86=E3=81=B8=E3=82=B9=E3=83=86?= =?UTF-8?q?=E3=83=BC=E3=82=BF=E3=82=B9=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SATE_RECEIPT-18 印字と投函完了はわけなくていいです。 --- .../Custom/HelloTechno/DownloadLetterController.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Web/Custom/HelloTechno/DownloadLetterController.php b/app/Http/Controllers/Web/Custom/HelloTechno/DownloadLetterController.php index dd6e5cf..713b407 100644 --- a/app/Http/Controllers/Web/Custom/HelloTechno/DownloadLetterController.php +++ b/app/Http/Controllers/Web/Custom/HelloTechno/DownloadLetterController.php @@ -5,6 +5,8 @@ namespace App\Http\Controllers\Web\Custom\HelloTechno; use App\Http\Controllers\Web\IParam; use App\Http\Controllers\Web\WebController; use App\Logic\ReceiptIssuingOrder\Custom\HelloTechno\PDFDownLoadManagerHelloTechno; +use App\Logic\ReceiptIssuingOrder\UpdateManager; +use App\Util\DateUtil; use Illuminate\Http\Request; use Illuminate\Http\Response; @@ -22,7 +24,8 @@ class DownloadLetterController extends WebController public function __construct( protected DownloadLetterParam $param, - private PDFDownLoadManagerHelloTechno $manager + private UpdateManager $updateManager, + private PDFDownLoadManagerHelloTechno $pdfManager, ) { parent::__construct(); } @@ -36,6 +39,12 @@ class DownloadLetterController extends WebController { $param = $this->param; - return $this->manager->initById($param->id)->downlaodLetter(); + // 投函日の登録 + $today = DateUtil::now(); + $this->updateManager->initById($param->id) + ->mailPosted($today) + ->update(); + + return $this->pdfManager->initById($param->id)->downlaodLetter(); } }