diff options
author | Filipp Lepalaan <f@230.to> | 2013-05-27 15:17:37 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-05-27 15:17:37 +0300 |
commit | 7643592d7885038ad43cca4ffc5b77eebd115138 (patch) | |
tree | 99ef2f149b471f71eb58eb629f69ef40317c3c20 /gsxws | |
parent | 41d8ee6ab7968fab364eee6ca21784c36d796d8b (diff) | |
download | py-gsxws-7643592d7885038ad43cca4ffc5b77eebd115138.tar.gz py-gsxws-7643592d7885038ad43cca4ffc5b77eebd115138.tar.bz2 py-gsxws-7643592d7885038ad43cca4ffc5b77eebd115138.zip |
Set shippingLocation when creating OnSite repair
Diffstat (limited to 'gsxws')
-rw-r--r-- | gsxws/repairs.py | 4 |
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") |