fix command stock audit

This commit is contained in:
Zakwan Hamdan
2023-02-10 18:36:17 +08:00
parent aaecc9baf4
commit 50f4ddf3f6
@@ -3,7 +3,7 @@
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Http;
class generateBackdateStockAuditProblem extends Command
{
/**
@@ -47,8 +47,10 @@ class generateBackdateStockAuditProblem extends Command
$zone = '3';
}
$tarikh = $this->ask('Masukkan Tarikh Hujung Bulan Yang Bermasalah Dalam Format (Y-m-d):');
$cawangan = $this->ask('Masukkan Kod Cawangan : ');
$updategadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/backup/stok/audit/problem',[
'zone' => $zone,
// 'zone' => $zone,
'kodcaw' => $cawangan,
'dateProblem' =>$tarikh
])->json();
$this->info('sucess');