From 9fa80da9c46ebfcd8253af3e21c6ca1ea42f5add Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 6 Jun 2013 14:16:52 +0300 Subject: Rename dispatchId in CA repair update --- gsxws/repairs.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gsxws') 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") -- cgit v1.2.3