diff options
author | Filipp Lepalaan <f@230.to> | 2013-06-06 14:16:52 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-06-06 14:16:52 +0300 |
commit | 9fa80da9c46ebfcd8253af3e21c6ca1ea42f5add (patch) | |
tree | b0977f363bd474da6b89897b2848bcc973b6878a /gsxws/repairs.py | |
parent | 0416bf0c5cba4fe4fa33704256df37f9b9bc2981 (diff) | |
download | py-gsxws-9fa80da9c46ebfcd8253af3e21c6ca1ea42f5add.tar.gz py-gsxws-9fa80da9c46ebfcd8253af3e21c6ca1ea42f5add.tar.bz2 py-gsxws-9fa80da9c46ebfcd8253af3e21c6ca1ea42f5add.zip |
Rename dispatchId in CA repair update
Diffstat (limited to 'gsxws/repairs.py')
-rw-r--r-- | gsxws/repairs.py | 5 |
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") |