mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Jobs;
|
|
|
|
use App\Classes\Modules\PerfexCRM\Processors\CreatePerfexCRMInvoiceProcessor;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class CreatePerfexCRMInvoice implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
/** @var $transaction*/
|
|
private $transaction;
|
|
|
|
/** @var $purchaseOrder*/
|
|
private $purchaseOrder;
|
|
|
|
/** @var $supplier*/
|
|
private $supplier;
|
|
|
|
/**
|
|
* CreatePerfexCRMInvoice constructor.
|
|
* @param $transaction
|
|
* @param $purchaseOrder
|
|
* @param $supplier
|
|
*/
|
|
public function __construct($transaction, $purchaseOrder, $supplier)
|
|
{
|
|
$this->transaction = $transaction;
|
|
$this->purchaseOrder = $purchaseOrder;
|
|
$this->supplier = $supplier;
|
|
}
|
|
|
|
public function handle()
|
|
{
|
|
(App()->make(CreatePerfexCRMInvoiceProcessor::class))->execute($this->transaction, $this->purchaseOrder, $this->supplier);
|
|
}
|
|
}
|