class('rounded-xl border border-zinc-200 bg-white p-3 shadow-sm dark:border-zinc-700 dark:bg-zinc-950/50') }}>
-
-
diff --git a/Modules/M3/Console/GenerateGS1Cmd.php b/Modules/M3/Console/GenerateGS1Cmd.php
index c7df2240..2676e631 100755
--- a/Modules/M3/Console/GenerateGS1Cmd.php
+++ b/Modules/M3/Console/GenerateGS1Cmd.php
@@ -53,7 +53,7 @@ class GenerateGS1Cmd extends Command
// Get the Calling User
$userId = $this->argument('user');
- $sHUSER = $userId ?? (m3_user() !== '' ? Str::upper(trim(m3_user())) : 'TWOSHIP');
+ $sHUSER = $userId ?? (m3User() !== '' ? Str::upper(trim(m3User())) : 'TWOSHIP');
$this->info('User: ' . $sHUSER);
// Get Manifest Array
diff --git a/Modules/M3/Helpers/Helper.php b/Modules/M3/Helpers/Helper.php
index f95072ac..9a994016 100755
--- a/Modules/M3/Helpers/Helper.php
+++ b/Modules/M3/Helpers/Helper.php
@@ -319,7 +319,7 @@ class Helper
'UserPL' => '',
];
- $loggedUser = strtoupper(trim((string) m3_user()));
+ $loggedUser = strtoupper(trim((string) m3User()));
if ($loggedUser === '') {
return $defaults;
}
diff --git a/Modules/M3/Helpers/M3Auth.php b/Modules/M3/Helpers/M3Auth.php
index 6443abbd..c8daf471 100755
--- a/Modules/M3/Helpers/M3Auth.php
+++ b/Modules/M3/Helpers/M3Auth.php
@@ -5,7 +5,7 @@ if (! function_exists('m3_user')) {
* Return the current Core username in the format expected by the legacy M3 data.
* M3 previously depended on PHP Basic Auth and read PHP_AUTH_USER directly.
*/
- function m3_user(): string
+ function m3User(): string
{
$user = auth()->user();
@@ -29,7 +29,7 @@ if (! function_exists('m3_legacy_password')) {
* Passwords are intentionally unavailable in Core. PostgreSQL access uses
* Laravel's configured connection and never reuses a user's login password.
*/
- function m3_legacy_password(): string
+ function m3LegacyPassword(): string
{
return '';
}
diff --git a/Modules/M3/Http/Controllers/API/CloseShipment.php b/Modules/M3/Http/Controllers/API/CloseShipment.php
index c7bae56e..cadd3f32 100755
--- a/Modules/M3/Http/Controllers/API/CloseShipment.php
+++ b/Modules/M3/Http/Controllers/API/CloseShipment.php
@@ -36,7 +36,7 @@ class CloseShipment extends Controller
$jSONCS = [];
// Get the Calling User
- $sHUSER = m3_user() !== '' ? Str::upper(m3_user()) : 'WebUser';
+ $sHUSER = m3User() !== '' ? Str::upper(m3User()) : 'WebUser';
$sHSOURCE = 'CloseShipmentCoChargeAPI';
try {
@@ -295,7 +295,7 @@ class CloseShipment extends Controller
->orderBy('AYINTBOX')
->get();
- foreach ($iCM695M1JOINTMP as $key => $ICM695M1JOINR) {
+ foreach ($iCM695M1JOINTMP as $ICM695M1JOINR) {
$a4SHIPVIA = isset($ICM695M1JOINR->A4SHIPVIA) ? trim(str_replace('&', '_', $ICM695M1JOINR->A4SHIPVIA)) : '';
$sHIPTYPE = trim($ICM695M1JOINR->A4SHIPTYPE);
diff --git a/Modules/M3/Http/Controllers/API/M3Controller.php b/Modules/M3/Http/Controllers/API/M3Controller.php
index 12442329..54720910 100755
--- a/Modules/M3/Http/Controllers/API/M3Controller.php
+++ b/Modules/M3/Http/Controllers/API/M3Controller.php
@@ -56,7 +56,7 @@ class M3Controller extends Controller
ini_set('max_input_time', Config::get('arrays.PHPTimeOut'));
ini_set('default_socket_timeout', Config::get('arrays.PHPTimeOut'));
- $rEQKPKUS = m3_user() !== '' ? Str::upper(m3_user()) : 'WEBUSER';
+ $rEQKPKUS = m3User() !== '' ? Str::upper(m3User()) : 'WEBUSER';
$sHSOURCE = 'M3ReceiverAPI';
$iCM666MFields = [
diff --git a/Modules/M3/Http/Controllers/API/PdfStorage.php b/Modules/M3/Http/Controllers/API/PdfStorage.php
index ab1cdfbb..2092f36a 100755
--- a/Modules/M3/Http/Controllers/API/PdfStorage.php
+++ b/Modules/M3/Http/Controllers/API/PdfStorage.php
@@ -71,7 +71,7 @@ class PdfStorage extends Controller
}
$context['DELIVERYNO'] = $context['A4MACPKR'] !== '' ? $context['A4MACPKR'] : self::ZERO_PAD;
- $context['SHUSER'] = m3_user() !== '' ? Str::upper(m3_user()) : 'WebUser';
+ $context['SHUSER'] = m3User() !== '' ? Str::upper(m3User()) : 'WebUser';
$context['SHSOURCE'] = 'PdfStorageAPI';
return $context;
@@ -123,7 +123,7 @@ class PdfStorage extends Controller
'SHINTBOX' => $context['DOCNUM'] ?? '',
'SHTYPE' => $type,
'SHDATA' => $message,
- 'SHUSER' => $context['SHUSER'] ?? (m3_user() !== '' ? Str::upper(m3_user()) : 'WebUser'),
+ 'SHUSER' => $context['SHUSER'] ?? (m3User() !== '' ? Str::upper(m3User()) : 'WebUser'),
'SHSOURCE' => $context['SHSOURCE'] ?? 'PdfStorageAPI',
'SHCO' => $context['COMPANY'] ?? '',
'SHWHS' => $context['WHS'] ?? '',
@@ -140,7 +140,7 @@ class PdfStorage extends Controller
'DOCNUM' => $docNum,
'COMPANY' => $company,
'WHS' => $warehouse,
- 'SHUSER' => m3_user() !== '' ? Str::upper(m3_user()) : 'WebUser',
+ 'SHUSER' => m3User() !== '' ? Str::upper(m3User()) : 'WebUser',
'SHSOURCE' => 'PdfStorageAPI',
];
$this->safeLog($context, 'An Error Occured -' . $message, true);
diff --git a/Modules/M3/Http/Controllers/API/ReplenAPI.php b/Modules/M3/Http/Controllers/API/ReplenAPI.php
index f1ade14c..d8d5ac80 100755
--- a/Modules/M3/Http/Controllers/API/ReplenAPI.php
+++ b/Modules/M3/Http/Controllers/API/ReplenAPI.php
@@ -28,7 +28,7 @@ class ReplenAPI extends Controller
// dd($request->all());
// Log::info( $request->all() );
// Get The Calling User
- $sHUSER = m3_user() !== '' ? Str::upper(m3_user()) : 'WebUser';
+ $sHUSER = m3User() !== '' ? Str::upper(m3User()) : 'WebUser';
$mACPKR = isset($mACPKR) ? $mACPKR : self::ZERO_PAD;
$sHSOURCE = 'M3InventoryReportReplen';
$m3Errors = '';
diff --git a/Modules/M3/Http/Controllers/API/TransferAPI.php b/Modules/M3/Http/Controllers/API/TransferAPI.php
index 288ece6d..78d16ee6 100755
--- a/Modules/M3/Http/Controllers/API/TransferAPI.php
+++ b/Modules/M3/Http/Controllers/API/TransferAPI.php
@@ -31,7 +31,7 @@ class TransferAPI extends Controller
ini_set('default_socket_timeout', Config::get('arrays.PHPTimeOut'));
// Get the Calling User
- $sHUSER = m3_user() !== '' ? Str::upper(m3_user()) : 'WebUser';
+ $sHUSER = m3User() !== '' ? Str::upper(m3User()) : 'WebUser';
// Set SHSOURCE
$sHSOURCE = 'TransferAPIURL';
$m3Errors = '';
@@ -441,7 +441,7 @@ class TransferAPI extends Controller
ini_set('default_socket_timeout', Config::get('arrays.PHPTimeOut'));
// Get the Calling User
- $sHUSER = m3_user() !== '' ? Str::upper(m3_user()) : 'WebUser';
+ $sHUSER = m3User() !== '' ? Str::upper(m3User()) : 'WebUser';
// Set SHSOURCE
$sHSOURCE = 'UpdateShipmentNumber';
$m3Errors = '';
diff --git a/Modules/M3/Http/Controllers/API/TwoShipAPIs.php b/Modules/M3/Http/Controllers/API/TwoShipAPIs.php
index 9ba3e194..bfae73a9 100755
--- a/Modules/M3/Http/Controllers/API/TwoShipAPIs.php
+++ b/Modules/M3/Http/Controllers/API/TwoShipAPIs.php
@@ -20,7 +20,7 @@ class TwoShipAPIs extends Controller
public function TwoShipUpdateHold(Request $request)
{
$this->configureTimeouts();
- $user = m3_user() !== '' ? Str::upper(m3_user()) : 'WebUser';
+ $user = m3User() !== '' ? Str::upper(m3User()) : 'WebUser';
$params = $request->all();
$whs = (string) ($params['WHS'] ?? '');
$co = (string) ($params['COMPANY'] ?? '');
diff --git a/Modules/M3/Http/Controllers/BoxPackToPalletController.php b/Modules/M3/Http/Controllers/BoxPackToPalletController.php
index cbf12346..246e3742 100755
--- a/Modules/M3/Http/Controllers/BoxPackToPalletController.php
+++ b/Modules/M3/Http/Controllers/BoxPackToPalletController.php
@@ -77,7 +77,7 @@ class BoxPackToPalletController extends Controller
$box = trim((string) ($request->R659BOX ?? ''));
abort_if($box === '', 400, 'Box Not Found');
- $user = m3_user() !== '' ? Str::upper(m3_user()) : 'WebUser';
+ $user = m3User() !== '' ? Str::upper(m3User()) : 'WebUser';
$profile = self::getUserWhsCoPlant();
$validation = self::validateScannedBox($pallet, $box, $profile);
@@ -268,7 +268,7 @@ class BoxPackToPalletController extends Controller
// Get Logged User CO/WHS/PLANT
public static function getUserWhsCoPlant()
{
- $sHUSER = m3_user() !== '' ? Str::upper(trim(m3_user())) : '';
+ $sHUSER = m3User() !== '' ? Str::upper(trim(m3User())) : '';
// Get users from ICM428M
$iCM428M = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')
->select('R428US', 'R428CO', 'R428WH', 'R428PL')
diff --git a/Modules/M3/Http/Controllers/CarrierMaintController.php b/Modules/M3/Http/Controllers/CarrierMaintController.php
index 6ac4972b..1fd31851 100755
--- a/Modules/M3/Http/Controllers/CarrierMaintController.php
+++ b/Modules/M3/Http/Controllers/CarrierMaintController.php
@@ -25,7 +25,7 @@ class CarrierMaintController extends Controller
if ($schema->hasTable('icm428m')) {
$power_user = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')
->select('R428PWRUSR', 'R428CO', 'R428PL', 'R428WH')
- ->where('R428US', strtoupper(m3_user()))->get()->all();
+ ->where('R428US', strtoupper(m3User()))->get()->all();
}
return view('m3::liberty-theme.pages.carrierMaint', ['ICM160M' => $iCM160M, 'power_user' => $power_user]);
diff --git a/Modules/M3/Http/Controllers/ExecSummaryController.php b/Modules/M3/Http/Controllers/ExecSummaryController.php
index ef5f97aa..8260749d 100755
--- a/Modules/M3/Http/Controllers/ExecSummaryController.php
+++ b/Modules/M3/Http/Controllers/ExecSummaryController.php
@@ -137,7 +137,7 @@ class ExecSummaryController extends Controller
}
// Init Page
- $sHUSER = m3_user() !== '' ? Str::upper(trim(m3_user())) : '';
+ $sHUSER = m3User() !== '' ? Str::upper(trim(m3User())) : '';
if ($sHUSER != '') {
// Get User CO & WH from Table ICM428M
$iCM428M = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')
diff --git a/Modules/M3/Http/Controllers/ExecSummaryLineController.php b/Modules/M3/Http/Controllers/ExecSummaryLineController.php
index 322ebfd5..0b82a612 100755
--- a/Modules/M3/Http/Controllers/ExecSummaryLineController.php
+++ b/Modules/M3/Http/Controllers/ExecSummaryLineController.php
@@ -178,7 +178,7 @@ class ExecSummaryLineController extends Controller
}
// Init Page
- $sHUSER = m3_user() !== '' ? Str::upper(trim(m3_user())) : '';
+ $sHUSER = m3User() !== '' ? Str::upper(trim(m3User())) : '';
if ($sHUSER != '') {
// Get User CO & WH from Table ICM428M
$iCM428M = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')
diff --git a/Modules/M3/Http/Controllers/M3DeliveryController.php b/Modules/M3/Http/Controllers/M3DeliveryController.php
index 04e5b288..cff4db6d 100755
--- a/Modules/M3/Http/Controllers/M3DeliveryController.php
+++ b/Modules/M3/Http/Controllers/M3DeliveryController.php
@@ -12,10 +12,10 @@ class M3DeliveryController extends Controller
public static function index(Request $request)
{
$connection = config('m3.connection', 'pgsql');
- $power_user = (object) ['R428PWRUSR' => 'N', 'R428US' => strtoupper(m3_user()), 'R428CO' => '', 'R428PL' => '', 'R428WH' => ''];
+ $power_user = (object) ['R428PWRUSR' => 'N', 'R428US' => strtoupper(m3User()), 'R428CO' => '', 'R428PL' => '', 'R428WH' => ''];
if (Schema::connection($connection)->hasTable('icm428m')) {
$power_user = DB::connection($connection)->table('icm428m')->select('R428PWRUSR', 'R428US', 'R428CO', 'R428PL', 'R428WH')
- ->where('R428US', strtoupper(m3_user()))->first() ?? $power_user;
+ ->where('R428US', strtoupper(m3User()))->first() ?? $power_user;
}
$co = $power_user->R428CO;
$plant = $power_user->R428PL;
diff --git a/Modules/M3/Http/Controllers/M3ErrorsDispController.php b/Modules/M3/Http/Controllers/M3ErrorsDispController.php
index fcd3cc54..ee8e18b0 100755
--- a/Modules/M3/Http/Controllers/M3ErrorsDispController.php
+++ b/Modules/M3/Http/Controllers/M3ErrorsDispController.php
@@ -73,7 +73,7 @@ class M3ErrorsDispController extends Controller
'STARTDATE' => trim((string) $request->input('STARTDATE', today()->subDays(1)->format('Y-m-d'))),
'ENDDATE' => trim((string) $request->input('ENDDATE', today()->format('Y-m-d'))),
'SHOWERRORS' => trim((string) $request->input('SHOWERRORS', 'N')),
- 'SHUSER' => m3_user() !== '' ? Str::upper(trim(m3_user())) : '',
+ 'SHUSER' => m3User() !== '' ? Str::upper(trim(m3User())) : '',
'SKIPDATES' => trim((string) $request->input('SKIPDATES', 'N')),
];
}
@@ -147,7 +147,7 @@ class M3ErrorsDispController extends Controller
$sHTIME = $request->SHTIME != null ? trim($request->SHTIME) : '';
$sHTYPE = $request->SHTYPE != null ? trim($request->SHTYPE) : '';
$sHACKNOTE = $request->SHACKNOTE != null ? trim(substr($request->SHACKNOTE, 0, 99)) : '';
- $sHUSER = m3_user() !== '' ? Str::upper(m3_user()) : '';
+ $sHUSER = m3User() !== '' ? Str::upper(m3User()) : '';
$cLOSESIM = $request->CLOSESIM != null ? trim($request->CLOSESIM) : 'N';
if ($cLOSESIM == 'N') {
@@ -242,7 +242,7 @@ class M3ErrorsDispController extends Controller
'endDate' => trim((string) $request->input('ENDDATE', today()->format('Y-m-d'))),
'showErrors' => trim((string) $request->input('SHOWERRORS', 'N')),
'skipDates' => trim((string) $request->input('SKIPDATES', 'N')),
- 'user' => Str::upper(trim(m3_user())),
+ 'user' => Str::upper(trim(m3User())),
];
}
diff --git a/Modules/M3/Http/Controllers/M3GetPDFFromCacheController.php b/Modules/M3/Http/Controllers/M3GetPDFFromCacheController.php
index 680d7e6c..c15bb4c2 100755
--- a/Modules/M3/Http/Controllers/M3GetPDFFromCacheController.php
+++ b/Modules/M3/Http/Controllers/M3GetPDFFromCacheController.php
@@ -24,7 +24,7 @@ class M3GetPDFFromCacheController extends Controller
// Initialise Vars
$pDFArray = $trackingno = $carrier = $iCM688M1 = [];
- $sHUSER = m3_user() !== '' ? Str::upper(trim(m3_user())) : '';
+ $sHUSER = m3User() !== '' ? Str::upper(trim(m3User())) : '';
if ($sHUSER != '') {
// Get User CO & WH
diff --git a/Modules/M3/Http/Controllers/MFOrdersController.php b/Modules/M3/Http/Controllers/MFOrdersController.php
index 8cd76460..4bd6af5c 100755
--- a/Modules/M3/Http/Controllers/MFOrdersController.php
+++ b/Modules/M3/Http/Controllers/MFOrdersController.php
@@ -16,7 +16,7 @@ class MFOrdersController extends Controller
// Get Users from ICM428M
$iCM428M = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')
->select('R428US', 'R428CO', 'R428WH', 'R428PL')
- ->where('R428US', '=', strtoupper(m3_user()))
+ ->where('R428US', '=', strtoupper(m3User()))
->first();
$co = $iCM428M->R428CO;
$whs = $iCM428M->R428WH;
diff --git a/Modules/M3/Http/Controllers/OrderLinesOfClosedOrder.php b/Modules/M3/Http/Controllers/OrderLinesOfClosedOrder.php
index 46829dc4..16ab99f9 100755
--- a/Modules/M3/Http/Controllers/OrderLinesOfClosedOrder.php
+++ b/Modules/M3/Http/Controllers/OrderLinesOfClosedOrder.php
@@ -237,7 +237,7 @@ class OrderLinesOfClosedOrder extends Controller
private static function userWarehouseContext(string $defaultCompany = '', string $defaultPlant = '', string $defaultWarehouse = ''): array
{
- $user = trim((string) m3_user());
+ $user = trim((string) m3User());
if ($user === '') {
return [$defaultCompany, $defaultPlant, $defaultWarehouse];
}
diff --git a/Modules/M3/Http/Controllers/PalletQtyController.php b/Modules/M3/Http/Controllers/PalletQtyController.php
index a7dea4e3..afc9b038 100755
--- a/Modules/M3/Http/Controllers/PalletQtyController.php
+++ b/Modules/M3/Http/Controllers/PalletQtyController.php
@@ -13,11 +13,11 @@ class PalletQtyController extends Controller
public static function index(Request $request)
{
$connection = config('m3.connection', 'pgsql');
- $power_user = (object) ['R428PWRUSR' => 'N', 'R428US' => strtoupper(m3_user()), 'R428CO' => '', 'R428PL' => '', 'R428WH' => ''];
+ $power_user = (object) ['R428PWRUSR' => 'N', 'R428US' => strtoupper(m3User()), 'R428CO' => '', 'R428PL' => '', 'R428WH' => ''];
if (Schema::connection($connection)->hasTable('icm428m')) {
$power_user = DB::connection($connection)->table('icm428m')
->select('R428PWRUSR', 'R428US', 'R428CO', 'R428PL', 'R428WH')
- ->where('R428US', '=', strtoupper(m3_user()))->first() ?? $power_user;
+ ->where('R428US', '=', strtoupper(m3User()))->first() ?? $power_user;
}
$co = $power_user->R428CO;
$plant = $power_user->R428PL;
diff --git a/Modules/M3/Http/Controllers/PendingClosureController.php b/Modules/M3/Http/Controllers/PendingClosureController.php
index 97252319..e14db322 100755
--- a/Modules/M3/Http/Controllers/PendingClosureController.php
+++ b/Modules/M3/Http/Controllers/PendingClosureController.php
@@ -15,7 +15,7 @@ class PendingClosureController extends Controller
// Get Users from ICM428M
$iCM428M = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')
->select('R428US', 'R428CO', 'R428WH', 'R428PL')
- ->where('R428US', '=', strtoupper(m3_user()))
+ ->where('R428US', '=', strtoupper(m3User()))
->first();
$user = $iCM428M->R428US;
$co = $iCM428M->R428CO;
diff --git a/Modules/M3/Http/Controllers/ReplenishSettingsController.php b/Modules/M3/Http/Controllers/ReplenishSettingsController.php
index a3bd9f76..0121110c 100755
--- a/Modules/M3/Http/Controllers/ReplenishSettingsController.php
+++ b/Modules/M3/Http/Controllers/ReplenishSettingsController.php
@@ -19,7 +19,7 @@ class ReplenishSettingsController extends Controller
// $iC670M = DB::connection(config('m3.connection', 'pgsql'))->table('ic670m')->get();
// Get Logged user Id
- $userId = m3_user() !== '' ? strtoupper(m3_user()) : '';
+ $userId = m3User() !== '' ? strtoupper(m3User()) : '';
// $userId = 'E1135818'; // Brad : E1135818 Malak : E2011812 ACOM_PDF
$connection = config('m3.connection', 'pgsql');
$iCM428M = Schema::connection($connection)->hasTable('icm428m')
@@ -140,7 +140,7 @@ class ReplenishSettingsController extends Controller
// $iC670M = DB::connection(config('m3.connection', 'pgsql'))->table('ic670m')->get();
// Get Logged user Id
- $userId = m3_user() !== '' ? strtoupper(m3_user()) : '';
+ $userId = m3User() !== '' ? strtoupper(m3User()) : '';
// $userId = 'E1135818'; // Brad : E1135818 Malak : E2011812 ACOM_PDF
$connection = config('m3.connection', 'pgsql');
$iCM428M = Schema::connection($connection)->hasTable('icm428m')
diff --git a/Modules/M3/Http/Controllers/UserControlController.php b/Modules/M3/Http/Controllers/UserControlController.php
index 28452efb..62fca8a3 100755
--- a/Modules/M3/Http/Controllers/UserControlController.php
+++ b/Modules/M3/Http/Controllers/UserControlController.php
@@ -21,7 +21,7 @@ class UserControlController extends Controller
$connection = config('m3.connection', 'pgsql');
$profile = null;
if (Schema::connection($connection)->hasTable('icm428m')) {
- $profile = DB::connection($connection)->table('icm428m')->where('R428US', strtoupper(m3_user()))->first();
+ $profile = DB::connection($connection)->table('icm428m')->where('R428US', strtoupper(m3User()))->first();
}
$co = $profile->R428CO ?? '';
$whs = $profile->R428WH ?? '';
diff --git a/Modules/M3/Http/Controllers/UserPickingStats4.php b/Modules/M3/Http/Controllers/UserPickingStats4.php
index d9f42cbb..15f037ce 100755
--- a/Modules/M3/Http/Controllers/UserPickingStats4.php
+++ b/Modules/M3/Http/Controllers/UserPickingStats4.php
@@ -38,7 +38,7 @@ class UserPickingStats4 extends Controller
if ($schema->hasTable('icm428m')) {
$profile = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')
->select('R428US', 'R428CO', 'R428WH')
- ->where('R428US', '=', strtoupper(m3_user()))
+ ->where('R428US', '=', strtoupper(m3User()))
->first();
$co = $profile->R428CO ?? '';
$whs = $profile->R428WH ?? '';
diff --git a/Modules/M3/Http/Controllers/UserPickingStats5.php b/Modules/M3/Http/Controllers/UserPickingStats5.php
index 72277a71..6db502c7 100755
--- a/Modules/M3/Http/Controllers/UserPickingStats5.php
+++ b/Modules/M3/Http/Controllers/UserPickingStats5.php
@@ -56,7 +56,7 @@ class UserPickingStats5 extends Controller
$profile = DB::connection($connection)->table('icm428m')
->select('R428CO', 'R428WH')
- ->where('R428US', strtoupper((string) m3_user()))
+ ->where('R428US', strtoupper((string) m3User()))
->first();
$co = trim((string) ($profile->R428CO ?? ''));
$whs = trim((string) ($profile->R428WH ?? ''));
diff --git a/Modules/M3/Http/Controllers/UserProfileController.php b/Modules/M3/Http/Controllers/UserProfileController.php
index aed3d27d..a33a0b1a 100755
--- a/Modules/M3/Http/Controllers/UserProfileController.php
+++ b/Modules/M3/Http/Controllers/UserProfileController.php
@@ -12,7 +12,7 @@ class UserProfileController extends Controller
{
// Get Current USER
- $loggedUser = strtoupper(m3_user());
+ $loggedUser = strtoupper(m3User());
$iCM428M = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')
->select('R428US', 'R428CO', 'R428WH', 'R428PL', 'R428FIRST', 'R428FAMILY')
diff --git a/Modules/M3/Http/Controllers/UtilitiesController.php b/Modules/M3/Http/Controllers/UtilitiesController.php
index 9a990b55..f917629a 100755
--- a/Modules/M3/Http/Controllers/UtilitiesController.php
+++ b/Modules/M3/Http/Controllers/UtilitiesController.php
@@ -170,7 +170,7 @@ class UtilitiesController extends Controller
// Get the Calling User
// $userId = 'TWOSHIP';
- // $sHUSER = isset($userId) ? $userId : (m3_user() !== '' ? Str::upper(trim(m3_user())) : '');
+ // $sHUSER = isset($userId) ? $userId : (m3User() !== '' ? Str::upper(trim(m3User())) : '');
// Get Manifest Array
$gSArray = $request->query();
diff --git a/Modules/M3/Http/Controllers/WhsPerfMetrics.php b/Modules/M3/Http/Controllers/WhsPerfMetrics.php
index 5d2a5f5e..e6784a47 100755
--- a/Modules/M3/Http/Controllers/WhsPerfMetrics.php
+++ b/Modules/M3/Http/Controllers/WhsPerfMetrics.php
@@ -60,7 +60,7 @@ class WhsPerfMetrics extends Controller
private static function loadUserContext(): array
{
$connection = config('m3.connection', 'pgsql');
- $user = Str::upper(trim((string) m3_user()));
+ $user = Str::upper(trim((string) m3User()));
if ($user === '' || ! Schema::connection($connection)->hasTable('icm428m')) {
return ['COMPANY' => '', 'PLANT' => '', 'WHS' => ''];
diff --git a/Modules/M3/Http/Controllers/WhsePerfController.php b/Modules/M3/Http/Controllers/WhsePerfController.php
index a87d36d9..acb19ac9 100755
--- a/Modules/M3/Http/Controllers/WhsePerfController.php
+++ b/Modules/M3/Http/Controllers/WhsePerfController.php
@@ -35,7 +35,7 @@ class WhsePerfController extends Controller
$iCM711M = DB::connection(config('m3.connection', 'pgsql'))->select($sqlstmt);
$uSER_INFO = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')->selectRaw('R428US as USERPRF, R428STS as STATUS, NULL as DATE_EXPIRED, NULL as EXPIRED')->get()->all();
- $power_user = DB::connection(config('m3.connection', 'pgsql'))->select("select R428PWRUSR, R428CO, R428PL, R428WH from ICM428M where R428US='" . strtoupper(m3_user()) . "'");
+ $power_user = DB::connection(config('m3.connection', 'pgsql'))->select("select R428PWRUSR, R428CO, R428PL, R428WH from ICM428M where R428US='" . strtoupper(m3User()) . "'");
$pct_array = Config::get('arrays.whsePerf_targets');
@@ -58,7 +58,7 @@ class WhsePerfController extends Controller
$iCM711M = DB::connection(config('m3.connection', 'pgsql'))->select($sqlstmt);
$uSER_INFO = DB::connection(config('m3.connection', 'pgsql'))->table('icm428m')->selectRaw('R428US as USERPRF, R428STS as STATUS, NULL as DATE_EXPIRED, NULL as EXPIRED')->get()->all();
- $power_user = DB::connection(config('m3.connection', 'pgsql'))->select("select R428PWRUSR, R428CO, R428PL, R428WH from ICM428M where R428US='" . strtoupper(m3_user()) . "'");
+ $power_user = DB::connection(config('m3.connection', 'pgsql'))->select("select R428PWRUSR, R428CO, R428PL, R428WH from ICM428M where R428US='" . strtoupper(m3User()) . "'");
$pct_array = Config::get('arrays.whsePerf_targets');
diff --git a/Modules/M3/Http/Middleware/BasicAuth.php b/Modules/M3/Http/Middleware/BasicAuth.php
index 7dc997d3..cb0f79d1 100755
--- a/Modules/M3/Http/Middleware/BasicAuth.php
+++ b/Modules/M3/Http/Middleware/BasicAuth.php
@@ -10,8 +10,8 @@ class BasicAuth
{
public function handle(Request $request, Closure $next): mixed
{
- $login = trim((string) m3_user());
- $password = (string) m3_legacy_password();
+ $login = trim((string) m3User());
+ $password = (string) m3LegacyPassword();
if ($login !== '' && $this->checkPassword($login, $password, '%%SYSTEM%%')) {
return $next($request);
diff --git a/Modules/M3/Resources/public/liberty-theme/css/styles.css b/Modules/M3/Resources/public/liberty-theme/css/styles.css
index 95c0c8aa..48c9f01f 100755
--- a/Modules/M3/Resources/public/liberty-theme/css/styles.css
+++ b/Modules/M3/Resources/public/liberty-theme/css/styles.css
@@ -5008,12 +5008,6 @@ textarea.form-control-lg {
color: #101214;
}
-@-webkit-keyframes progress-bar-stripes {
- 0% {
- background-position-x: 1rem;
- }
-}
-
@keyframes progress-bar-stripes {
0% {
background-position-x: 1rem;
@@ -6198,12 +6192,6 @@ textarea.form-control-lg {
color: #000;
}
-@-webkit-keyframes spinner-border {
- to {
- transform: rotate(360deg) /* rtl:ignore */;
- }
-}
-
@keyframes spinner-border {
to {
transform: rotate(360deg) /* rtl:ignore */;
@@ -6227,16 +6215,6 @@ textarea.form-control-lg {
border-width: 0.2em;
}
-@-webkit-keyframes spinner-grow {
- 0% {
- transform: scale(0);
- }
- 50% {
- opacity: 1;
- transform: none;
- }
-}
-
@keyframes spinner-grow {
0% {
transform: scale(0);
@@ -6398,12 +6376,6 @@ textarea.form-control-lg {
animation: placeholder-glow 2s ease-in-out infinite;
}
-@-webkit-keyframes placeholder-glow {
- 50% {
- opacity: 0.2;
- }
-}
-
@keyframes placeholder-glow {
50% {
opacity: 0.2;
@@ -6418,13 +6390,6 @@ textarea.form-control-lg {
animation: placeholder-wave 2s linear infinite;
}
-@-webkit-keyframes placeholder-wave {
- 100% {
- -webkit-mask-position: -200% 0%;
- mask-position: -200% 0%;
- }
-}
-
@keyframes placeholder-wave {
100% {
-webkit-mask-position: -200% 0%;
diff --git a/Modules/M3/Resources/views/liberty-theme/layout/main.blade.php b/Modules/M3/Resources/views/liberty-theme/layout/main.blade.php
index cfccd7f1..97eae9c8 100755
--- a/Modules/M3/Resources/views/liberty-theme/layout/main.blade.php
+++ b/Modules/M3/Resources/views/liberty-theme/layout/main.blade.php
@@ -1,6 +1,6 @@
@php
# Get Current USER
- $loggedUser = strtoUpper(m3_user());
+ $loggedUser = strtoUpper(m3User());
$admin_users = $power_users = $csr = $execUser = "";
$UserCO = $UserWHS = $UserPL = '';
diff --git a/Modules/M3/Resources/views/liberty-theme/pages/BoxPackToPalletScan.blade.php b/Modules/M3/Resources/views/liberty-theme/pages/BoxPackToPalletScan.blade.php
index f62f4393..1167c13a 100755
--- a/Modules/M3/Resources/views/liberty-theme/pages/BoxPackToPalletScan.blade.php
+++ b/Modules/M3/Resources/views/liberty-theme/pages/BoxPackToPalletScan.blade.php
@@ -25,7 +25,7 @@
User
- {{ $palletHeader->R659USER ?? (m3_user() !== '' ? Str::upper(m3_user()) : '—') }}
+ {{ $palletHeader->R659USER ?? (m3User() !== '' ? Str::upper(m3User()) : '—') }}
diff --git a/Modules/M3/Resources/views/liberty-theme/pages/M3GetPDF.blade.php b/Modules/M3/Resources/views/liberty-theme/pages/M3GetPDF.blade.php
index f827f412..d04a4ad6 100755
--- a/Modules/M3/Resources/views/liberty-theme/pages/M3GetPDF.blade.php
+++ b/Modules/M3/Resources/views/liberty-theme/pages/M3GetPDF.blade.php
@@ -20,7 +20,7 @@ Sentinel Doc Archive
Warehouse:
-