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