From 7643592d7885038ad43cca4ffc5b77eebd115138 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 27 May 2013 15:17:37 +0300 Subject: Set shippingLocation when creating OnSite repair --- gsxws/repairs.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gsxws') 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") -- cgit v1.2.3