Update api requests

This commit is contained in:
miroman-afk
2021-05-31 16:11:03 +03:00
parent 8990126842
commit 3b61b27200
54 changed files with 1911 additions and 362 deletions

22
commands/Fiscals.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace App\Commands;
use App\Component\Models\Terminal;
use App\Console\Commands\HRCCommand;
use App\Console\Commands\HRCCommandInterface;
class Fiscals extends HRCCommand implements HRCCommandInterface {
protected $signature = 'postfiscals';
public function command($input, $output = null) {
$terminals = Terminal::select('work_code', 'work_group')->where('key', '=', $input['terminal'])->get();
foreach ($terminals as $terminal) {
$out = array('work_code' => $terminal['work_code'], 'work_group' => $terminal['work_group']);
}
return [
'status' => 'success',
'terminal_data' => $out,
];
}
}