From 6f8f3480a324e7384572ff49c0cb86e72f48b3d6 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 9 Jun 2013 14:12:46 +0300 Subject: Returns cleanup --- gsxws/returns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gsxws/returns.py b/gsxws/returns.py index f488ab9..96e61f5 100644 --- a/gsxws/returns.py +++ b/gsxws/returns.py @@ -82,7 +82,7 @@ class Return(GsxObject): self.partNumber = part_number self._submit("ReturnLabelRequest", "ReturnLabel", "returnLabelData") - return self._req.objects[0] + return self._req.objects def get_proforma(self): """ @@ -105,7 +105,7 @@ class Return(GsxObject): "RegisterPartsForBulkReturn", "bulkPartsRegistrationData") - return self._req.objects[0] + return self._req.objects def update_parts(self, confirmation, parts): """ @@ -122,7 +122,7 @@ class Return(GsxObject): self.repairConfirmationNumber = confirmation self.orderLines = parts self._submit("repairData", "PartsReturnUpdate", "PartsReturnUpdateResponse") - return self._req.objects[0] + return self._req.objects if __name__ == '__main__': -- cgit v1.2.3