M3 Security Fixes for pass 29
This commit is contained in:
@@ -42,7 +42,6 @@ class WHSMetricsSaveXls extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
// $this->info('Start CallCloseAPI...');
|
||||
ini_set('max_execution_time', Config::get('arrays.PHPTimeOutCL'));
|
||||
ini_set('max_input_time', Config::get('arrays.PHPTimeOutCL'));
|
||||
ini_set('default_socket_timeout', Config::get('arrays.PHPTimeOutCL'));
|
||||
@@ -56,13 +55,10 @@ class WHSMetricsSaveXls extends Command
|
||||
$SHUSER = isset($userId) ? $userId : (m3_user() !== '' ? Str::upper(trim(m3_user())) : '');
|
||||
|
||||
$CO = $this->argument('co');
|
||||
// $COMPANY = isset($CO) ? trim($CO) : '110';
|
||||
$COMPANY = '110';
|
||||
$PWHS = $this->argument('whs');
|
||||
// $WHS = isset($PWHS) ? trim($PWHS) : '321';
|
||||
$WHS = '321';
|
||||
$PPL = $this->argument('pl');
|
||||
// $PLANT = isset($PPL) ? trim($PPL) : '143';
|
||||
$PLANT = '143';
|
||||
|
||||
$date = new \DateTime;
|
||||
@@ -92,7 +88,6 @@ class WHSMetricsSaveXls extends Command
|
||||
GROUP BY A4SHIPTYPE,STATUS,SOURCE
|
||||
ORDER BY 1,3,2
|
||||
");
|
||||
// dd($ICM700MHeadSel);
|
||||
|
||||
$newItem = ['A4SHIPTYPE' => 'Method', 'STATUS' => 'Status', 'SOURCE' => 'Source', 'PICKERS' => 'Pickers',
|
||||
'WEIGHT' => 'Weight', 'LINES' => 'Lines', 'DOLLARS' => 'Dollars'];
|
||||
@@ -110,7 +105,6 @@ class WHSMetricsSaveXls extends Command
|
||||
// Prepend Header to Collection
|
||||
$ICM700MHeadCol->prepend($newItem);
|
||||
|
||||
// $this->info($ICM700MHeadCol);
|
||||
// Log::channel('dailyCron')->info(">>> Header Content");
|
||||
// Log::channel('dailyCron')->info($ICM700MHeadCol);
|
||||
|
||||
@@ -158,7 +152,6 @@ class WHSMetricsSaveXls extends Command
|
||||
} else {
|
||||
$ICM700MDetailsCol = collect();
|
||||
}
|
||||
// Log::channel('dailyCron')->info(">>> Detail Content");
|
||||
// Log::channel('dailyCron')->info($ICM700MDetailsCol);
|
||||
|
||||
// Save Head and Details to XLS file
|
||||
@@ -180,7 +173,6 @@ class WHSMetricsSaveXls extends Command
|
||||
$this->info('Cron...End Save Today WHS Performance Report to Excel');
|
||||
|
||||
} catch (\Throwable $th) {
|
||||
// Log::error($th);
|
||||
Log::channel('dailyCron')->error($th);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user