mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Ensure signature date is written
This commit is contained in:
parent
8793aab59c
commit
150badae05
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user