M3 Integration fixes

This commit is contained in:
Mark Gregory
2026-09-21 13:59:57 +01:00
parent 2242106309
commit 9167b11f8b
9 changed files with 24 additions and 133 deletions
@@ -260,7 +260,7 @@ class CloseShipment extends Controller
// ->get();
// PFC : Check that Picked / Packed are all Equal
foreach ($iCM688M2SL as $key => $ICM688M2SLR) {
foreach ($iCM688M2SL as $ICM688M2SLR) {
$a5PICKED = isset($ICM688M2SLR->A5PICKED) ? $ICM688M2SLR->A5PICKED : 0;
$a5RSVQTY = isset($ICM688M2SLR->A5RSVQTY) ? $ICM688M2SLR->A5RSVQTY : 0;
$a5ShortShipQty = (int) $a5RSVQTY - (int) $a5PICKED;
@@ -783,7 +783,7 @@ class CloseShipment extends Controller
elseif (count($iCM695M1TMP) > 0 && $tRANSTYPE == 'Z') {
$errorMsgs = '';
foreach ($iCM695M1TMP as $ICM695M1JOINR) {
foreach ($iCM695M1TMP as $key => $ICM695M1JOINR) {
$sHIPTYPE = trim($ICM695M1JOINR->A4SHIPTYPE);
$fREIGHTTERMS = trim($ICM695M1JOINR->A4OFSTRM);
$a4RATEM3 = trim($ICM695M1JOINR->A4RATEM3);