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(); + } }