M3 Integration fixes

This commit is contained in:
Mark Gregory
2026-09-21 13:25:44 +01:00
parent 47085e5160
commit 3521e47ef0
62 changed files with 131 additions and 173 deletions
@@ -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 ?? '';