aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-06-06 14:16:52 +0300
committerFilipp Lepalaan <f@230.to>2013-06-06 14:16:52 +0300
commit9fa80da9c46ebfcd8253af3e21c6ca1ea42f5add (patch)
treeb0977f363bd474da6b89897b2848bcc973b6878a
parent0416bf0c5cba4fe4fa33704256df37f9b9bc2981 (diff)
downloadpy-gsxws-9fa80da9c46ebfcd8253af3e21c6ca1ea42f5add.tar.gz
py-gsxws-9fa80da9c46ebfcd8253af3e21c6ca1ea42f5add.tar.bz2
py-gsxws-9fa80da9c46ebfcd8253af3e21c6ca1ea42f5add.zip
Rename dispatchId in CA repair update
-rw-r--r--gsxws/repairs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index 9f6c1ec..b22676c 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -223,6 +223,11 @@ class CarryInRepair(Repair):
RFPU Ready for Pickup
"""
self._namespace = "asp:"
+
+ if not getattr(self, "repairConfirmationNumber"):
+ self.repairConfirmationNumber = self.dispatchId
+ del(self.dispatchId)
+
# Merge old and new data (old data should have Dispatch ID)
self._data.update(newdata)
return self._submit("repairData", "UpdateCarryIn", "repairConfirmation")