From a1d129a4aa16ea3946ad968dac35cf96d7cc0207 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 26 Jun 2013 23:32:01 +0300 Subject: Unset dispatchId in SN updates --- gsxws/repairs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3