diff options
author | Filipp Lepalaan <f@230.to> | 2013-06-26 23:32:01 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-06-26 23:32:01 +0300 |
commit | a1d129a4aa16ea3946ad968dac35cf96d7cc0207 (patch) | |
tree | 73231a67ce3836b2bf4951106bedbd1b2ce4e897 /gsxws/repairs.py | |
parent | b3336dc3a7606e321bfc1cd90d46e3a03545a668 (diff) | |
download | py-gsxws-a1d129a4aa16ea3946ad968dac35cf96d7cc0207.tar.gz py-gsxws-a1d129a4aa16ea3946ad968dac35cf96d7cc0207.tar.bz2 py-gsxws-a1d129a4aa16ea3946ad968dac35cf96d7cc0207.zip |
Unset dispatchId in SN updates
Diffstat (limited to 'gsxws/repairs.py')
-rw-r--r-- | gsxws/repairs.py | 5 |
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") |