File: /var/www/vhost/disk-apps/agile-selling-orl/app/Console/Commands/SyncB1CreateQueries.php
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Http\Request;
use App\Http\Controllers\SAPB1ServiceLayerController;
class SyncB1CreateQueries extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'b1:create-queries';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Crea las queries Z en B1';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$request1 = new Request([
'entity' => 'CreateQueryInventory'
]);
$request2 = new Request([
'entity' => 'CreateQueryItemManualPrices'
]);
$c = new SAPB1ServiceLayerController();
$c->queryEntity($request1);
$c->queryEntity($request2);
return 0;
}
}