Add support for Customer address fields in CORE -> Rattail
This commit is contained in:
parent
f4384f8b1d
commit
76b0791831
|
@ -139,11 +139,11 @@ class CustomerImporter(FromCOREPOSAPI, corepos_importing.model.CustomerImporter)
|
||||||
'corepos_account_id',
|
'corepos_account_id',
|
||||||
'number',
|
'number',
|
||||||
'name',
|
'name',
|
||||||
# 'address_street',
|
'address_street',
|
||||||
# 'address_street2',
|
'address_street2',
|
||||||
# 'address_city',
|
'address_city',
|
||||||
# 'address_state',
|
'address_state',
|
||||||
# 'address_zipcode',
|
'address_zipcode',
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_host_objects(self):
|
def get_host_objects(self):
|
||||||
|
@ -177,11 +177,11 @@ class CustomerImporter(FromCOREPOSAPI, corepos_importing.model.CustomerImporter)
|
||||||
'name': normalize_full_name(customer['firstName'],
|
'name': normalize_full_name(customer['firstName'],
|
||||||
customer['lastName']),
|
customer['lastName']),
|
||||||
|
|
||||||
# 'address_street': member['addressFirstLine'] or None,
|
'address_street': member['addressFirstLine'] or None,
|
||||||
# 'address_street2': member['addressSecondLine'] or None,
|
'address_street2': member['addressSecondLine'] or None,
|
||||||
# 'address_city': member['city'] or None,
|
'address_city': member['city'] or None,
|
||||||
# 'address_state': member['state'] or None,
|
'address_state': member['state'] or None,
|
||||||
# 'address_zipcode': member['zip'] or None,
|
'address_zipcode': member['zip'] or None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue