Skip to content

Commit 122f52c

Browse files
committed
movins
1 parent 10699c1 commit 122f52c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/Generator/Movins/Container.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function addFreeText($freeText)
8686
*/
8787
public function setContainer($number, $size, $statusCode, $fullEmptyIndicator)
8888
{
89-
$this->cntr = \EDI\Generator\Message::eqdSegment('CN', $number, [$size, '6346', '306'], '', $statusCode, $fullEmptyIndicator);
89+
$this->cntr = \EDI\Generator\Message::eqdSegment('CN', $number, $size, '', $statusCode, $fullEmptyIndicator);
9090

9191
return $this;
9292
}
@@ -96,13 +96,17 @@ public function setContainer($number, $size, $statusCode, $fullEmptyIndicator)
9696
* @param $line
9797
* @return \EDI\Generator\Movins\Container
9898
*/
99-
public function setCarrier($line)
99+
public function setCarrier($line, $codeListQualifier = null, $codeListResponsibleAgencyCoded = null)
100100
{
101101
$this->carrier = ['NAD', 'CA', $line];
102+
if ($codeListQualifier !== null) {
103+
$this->carrier = ['NAD', 'CA', [$line, $codeListQualifier, $codeListResponsibleAgencyCoded] ];
104+
}
102105

103106
return $this;
104107
}
105108

109+
106110
/**
107111
* $type = 9 (place of load)
108112
* @param $locode

0 commit comments

Comments
 (0)