Commits

Raimon Esteve (Zikzakmedia) committed 009542f

Remove customer_cp. Use customer_zip

Comments (0)

Files changed (2)

envialia/envxml.py

         '<strNumDes>%(customer_street_number)s</strNumDes>' \
         '<strPisoDes>%(customer_street_floor)s</strPisoDes>' \
         '<strPobDes>%(customer_city)s</strPobDes>' \
-        '<strCPDes>%(customer_cp)s</strCPDes>' \
+        '<strCPDes>%(customer_zip)s</strCPDes>' \
         '<intDoc>%(document)s</intDoc>' \
         '<intPaq>%(packages)s</intPaq>' \
         '<dPesoOri>%(weight)s</dPesoOri>' \
             'customer_street_number': data.get('customer_street_number', ''),
             'customer_street_floor': data.get('customer_street_floor', ''),
             'customer_city': data.get('customer_city', ''),
-            'customer_cp': data.get('customer_cp', ''),
+            'customer_zip': data.get('customer_zip', ''),
             'document': data.get('document', 1),
             'packages': data.get('packages', 1),
             'weight': data.get('weight', 0),
     # data['picking_date'] = '2012/11/05' # not date, today
     # data['agency_dest'] = ''
     data['service_code'] = 10
-    data['customer_cp'] = '08720'
-
     data['company_code'] = 'Zikzakmedia'
     data['customer_name'] = 'Raimon'
     data['customer_street'] = 'Dr. Fleming'