aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-27 15:22:53 +0300
committerFilipp Lepalaan <f@230.to>2013-05-27 15:22:53 +0300
commit3e4295759d77dffd95af6a37becc1769183aeccb (patch)
tree27921c6b958f25e99b3ca80e06dcc92bcf31551b /gsxws
parent7643592d7885038ad43cca4ffc5b77eebd115138 (diff)
downloadpy-gsxws-3e4295759d77dffd95af6a37becc1769183aeccb.tar.gz
py-gsxws-3e4295759d77dffd95af6a37becc1769183aeccb.tar.bz2
py-gsxws-3e4295759d77dffd95af6a37becc1769183aeccb.zip
poNumber > purchaseOrderNumber for OnSite repairs
Diffstat (limited to 'gsxws')
-rw-r--r--gsxws/repairs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index 99c1d0b..4b752ab 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -244,6 +244,10 @@ class IndirectOnsiteRepair(Repair):
self.shippingLocation = self.shipTo
del(self._data['shipTo'])
+ if getattr(self, "poNumber"):
+ self.purchaseOrderNumber = self.poNumber
+ del(self._data['poNumber'])
+
return self._submit("repairData", "CreateIndirectOnsiteRepair",
"repairConfirmation")