diff options
-rw-r--r-- | gsxlib.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -238,7 +238,7 @@ class GsxLib $req = array('ReturnLabel' => array( 'returnOrderNumber' => $returnOrder, - 'partNumber' => $partNumber + 'partNumber' => $partNumber )); return $this->request($req)->returnLabelData; @@ -273,6 +273,8 @@ class GsxLib public function warrantyStatus($serialNumber) { $serialNumber = trim($serialNumber); + // SNs should never start with an S, but they're often coded into barcodes + $serialNumber = ltrim($serialNumber, 'sS'); if (!self::looksLike($serialNumber, 'serialNumber')) { exit('Invalid serial number: ' . $serialNumber); @@ -349,5 +351,4 @@ class GsxLib } - ?>
\ No newline at end of file |