m3 Security Fixes
This commit is contained in:
@@ -13,6 +13,8 @@ use Str;
|
||||
|
||||
class ClosedOrderSaveXls extends Command
|
||||
{
|
||||
private const XLSX_EXTENSION = '.xlsx';
|
||||
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
@@ -75,9 +77,9 @@ class ClosedOrderSaveXls extends Command
|
||||
$toreportDateWD = $toPreviousMonth;
|
||||
|
||||
if ($WHS == '321') {
|
||||
$prevMonthFile = 'Closedorderlinesreport_' . $reportDateWD . '-' . $toreportDateWD . '.xlsx';
|
||||
$prevMonthFile = 'Closedorderlinesreport_' . $reportDateWD . '-' . $toreportDateWD . self::XLSX_EXTENSION;
|
||||
} else {
|
||||
$prevMonthFile = $WHS . '/Closedorderlinesreport_' . $reportDateWD . '-' . $toreportDateWD . '-' . $WHS . '.xlsx';
|
||||
$prevMonthFile = $WHS . '/Closedorderlinesreport_' . $reportDateWD . '-' . $toreportDateWD . '-' . $WHS . self::XLSX_EXTENSION;
|
||||
}
|
||||
|
||||
$this->info('Generate Last Month Report...');
|
||||
@@ -165,7 +167,7 @@ class ClosedOrderSaveXls extends Command
|
||||
if ($WHS == '321') {
|
||||
$currentMonthFile = 'first_of_month_to_current_date.xlsx';
|
||||
} else {
|
||||
$currentMonthFile = $WHS . '/first_of_month_to_current_date_' . $WHS . '.xlsx';
|
||||
$currentMonthFile = $WHS . '/first_of_month_to_current_date_' . $WHS . self::XLSX_EXTENSION;
|
||||
}
|
||||
|
||||
$this->info('Generate Current Month Report...');
|
||||
|
||||
Reference in New Issue
Block a user