diff --git a/app/Console/Commands/generateBackdateStockAuditProblem.php b/app/Console/Commands/generateBackdateStockAuditProblem.php new file mode 100644 index 0000000..638a397 --- /dev/null +++ b/app/Console/Commands/generateBackdateStockAuditProblem.php @@ -0,0 +1,56 @@ +option('all')){ + $zone = 'all'; + }else if($this->option('1')){ + $zone = '1'; + }else if ($this->option('2')){ + $zone = '2'; + }else if ($this->option('3')){ + $zone = '3'; + } + $tarikh = $this->ask('Masukkan Tarikh Hujung Bulan Yang Bermasalah Dalam Format (Y-m-d):'); + $updategadai = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/backup/stok/audit/problem',[ + 'zone' => $zone, + 'dateProblem' =>$tarikh + ])->json(); + $this->info('sucess'); + } +}