M3 Integration fixes

This commit is contained in:
Mark Gregory
2026-09-22 11:21:09 +01:00
parent 9928750bc2
commit 4be07c8456
5 changed files with 235 additions and 198 deletions
@@ -39,6 +39,14 @@ class FillBOL2Controller extends Controller
}
private function bolData(Request $request, Request $bOL): array
{
return array_merge(
$this->bolPrimaryData($request, $bOL),
$this->bolRemainingData()
);
}
private function bolPrimaryData(Request $request, Request $bOL): array
{
return [
'bol_number' => $request->input('BOL_number') ?? '1234567890',
@@ -138,7 +146,13 @@ Line 5',
'LNITEMCLAS17' => '',
'TYPEANDESCPTN.17' => '',
'PKGTYPECOUNT17' => '',
'LNITEMWT16' => '',
];
}
private function bolRemainingData(): array
{
return [
'LNITEMWT16' => '',
'CLASSORATE16' => '',
'LNITEMCLAS16' => '',
'TYPEANDESCPTN.16' => '',
@@ -225,7 +239,7 @@ Line 5',
'BILLTOADDR' => '',
'NUMDROPS' => '',
];
}
}