mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-22 14:04:06 +00:00
48 lines
1.0 KiB
PHP
48 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Console\Commands\V2;
|
|
|
|
use App\Classes\Jobs\Commands\V2\FixInvoiceV2CommandJob;
|
|
use App\Classes\Modules\Jobs\DataTransferObjects\FixInvoiceV2CommandObject;
|
|
use Illuminate\Console\Command;
|
|
|
|
class FixInvoiceV2Command extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'invoice-fix-command {--marking=}';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Fix Invoice By Company Module Marking';
|
|
|
|
/**
|
|
* Create a new command instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function handle()
|
|
{
|
|
$fixInvoiceV2CommandObject = new FixInvoiceV2CommandObject(
|
|
$this->option('marking')
|
|
);
|
|
FixInvoiceV2CommandJob::dispatch($fixInvoiceV2CommandObject);
|
|
}
|
|
}
|