aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/repairs.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-27 15:17:37 +0300
committerFilipp Lepalaan <f@230.to>2013-05-27 15:17:37 +0300
commit7643592d7885038ad43cca4ffc5b77eebd115138 (patch)
tree99ef2f149b471f71eb58eb629f69ef40317c3c20 /gsxws/repairs.py
parent41d8ee6ab7968fab364eee6ca21784c36d796d8b (diff)
downloadpy-gsxws-7643592d7885038ad43cca4ffc5b77eebd115138.tar.gz
py-gsxws-7643592d7885038ad43cca4ffc5b77eebd115138.tar.bz2
py-gsxws-7643592d7885038ad43cca4ffc5b77eebd115138.zip
Set shippingLocation when creating OnSite repair
Diffstat (limited to 'gsxws/repairs.py')
-rw-r--r--gsxws/repairs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index bff9c50..99c1d0b 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -240,6 +240,10 @@ class IndirectOnsiteRepair(Repair):
_namespace = "asp:"
def create(self):
+ if getattr(self, "shipTo"): # Carry-In and OnSite use different field names!
+ self.shippingLocation = self.shipTo
+ del(self._data['shipTo'])
+
return self._submit("repairData", "CreateIndirectOnsiteRepair",
"repairConfirmation")