aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/repairs.py
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws/repairs.py')
-rw-r--r--gsxws/repairs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index bbd2af4..9f91600 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -84,6 +84,7 @@ class Repair(GsxObject):
self.partInfo = parts
if hasattr(self, "dispatchId"):
self.repairConfirmationNumber = self.dispatchId
+ del self.dispatchId
return self._submit("repairData", "UpdateSerialNumber", "repairConfirmation")
@@ -102,7 +103,9 @@ class Repair(GsxObject):
This API can be invoked only after carry-in repair creation API.
"""
self.serialNumber = sn
- self.repairConfirmationNumber = self.dispatchId
+ if hasattr(self, "dispatchId"):
+ self.repairConfirmationNumber = self.dispatchId
+ del self.dispatchId
return self._submit("UpdateKGBSerialNumberRequest", "UpdateKGBSerialNumber",
"UpdateKGBSerialNumberResponse")