From 150badae051904c1df3c626cd2f9aa4db6034f81 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 26 Jul 2023 12:04:32 +1000 Subject: [PATCH] Ensure signature date is written --- app/Jobs/Invoice/InjectSignature.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/app/Jobs/Invoice/InjectSignature.php b/app/Jobs/Invoice/InjectSignature.php index fd5792adf15d..bdb94dfb3eb5 100644 --- a/app/Jobs/Invoice/InjectSignature.php +++ b/app/Jobs/Invoice/InjectSignature.php @@ -2,9 +2,6 @@ namespace App\Jobs\Invoice; -use App\Jobs\Entity\CreateEntityPdf; -use App\Jobs\Vendor\CreatePurchaseOrderPdf; -use App\Models\PurchaseOrder; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; @@ -16,7 +13,7 @@ class InjectSignature implements ShouldQueue use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; /** - * @var App\Models\Invoice|App\Models\Quote + * @var \App\Models\Invoice | \App\Models\Quote | \App\Models\Credit | \App\Models\PurchaseOrder */ public $entity; @@ -52,13 +49,9 @@ class InjectSignature implements ShouldQueue } $invitation->signature_base64 = $this->signature; + $invitation->signature_date = now(); $invitation->save(); - $this->entity->refresh()->service()->touchPdf(true); - - // if($this->entity instanceof PurchaseOrder) - // (new CreatePurchaseOrderPdf($invitation))->handle(); - // else - // (new CreateEntityPdf($invitation))->handle(); + } }