Skip to content

Commit f245b1f

Browse files
author
EMMANUEL HAVET
committed
2 parents 5fcec2a + 8cf60ea commit f245b1f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/shipment.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function makeTwoWays() {
183183
$this->makeOneParcelTwoWays($this->shipperValue[0], $this->recipientValue[0], $this->refValue[$index], $this->skybillValue[$index]);
184184
}
185185
}
186-
else if ($numshippers == numskybills && $numrecipients == numskybills && $numrefs == $numskybills) {
186+
else if ($numshippers == $numskybills && $numrecipients == $numskybills && $numrefs == $numskybills) {
187187
foreach($this->skybillValue as $index => $skybill) {
188188
$this->twoWaysArray[] = array($this->shipperValue[$index], $this->recipientValue[$index], $this->refValue[$index], $this->skybillValue[$index]);
189189
$this->makeOneParcelTwoWays($this->shipperValue[$index], $this->recipientValue[$index], $this->refValue[$index], $this->skybillValue[$index]);
@@ -205,6 +205,7 @@ public function makeTwoWays() {
205205
$this->skybillValue[] = $parcel[3];
206206
}
207207

208+
$this->setnumberOfParcel(count($this->skybillValue));
208209
}
209210
/********
210211
* Makes one parcel 2 ways
@@ -342,4 +343,4 @@ public function RFLcheck() {
342343
}
343344

344345
}
345-
?>
346+
?>

src/wsdata/wsesdvalue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ public function setretrievalDateTime ($value) {
5454
else {
5555
unset($this->retrievalDateTime);
5656
if ($this->useExceptions) throw new wsdataexception(__METHOD__ . " retrievalDateTime not within Now and Now+3months range");
57-
return false
57+
return false;
5858
}
5959
}
6060
else {
61-
return false
61+
return false;
6262
}
6363
}
6464
public function setshipperBuildingFloor ($value) {

src/wsdata/wstrackingoneparcelvalue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function RFLcheck() {
3131
}
3232
else {
3333
if ($this->useExceptions) throw new wsdataexception(__METHOD__ . " To track parcel, we need skybill number and language to be set");
34-
return false
34+
return false;
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)