Changeset - 154722b78d9d
[Not reviewed]
0 1 0
Lance Edgar - 5 years ago 2020-03-18 12:37:18
lance@edbob.org
Change how we import `Member.id` from CORE

to match what we do for `Customer.id`
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general) First comment
rattail_corepos/importing/corepos/api.py
Show inline comments
 
@@ -480,10 +480,10 @@ class MemberImporter(FromCOREPOSAPI, importing.model.MemberImporter):
 
    """
 
    Importer for member data from CORE POS API.
 
    """
 
    key = 'id'
 
    key = 'number'
 
    supported_fields = [
 
        'id',
 
        'number',
 
        'id',
 
        'customer_uuid',
 
        'joined',
 
        'withdrew',
 
@@ -548,8 +548,8 @@ class MemberImporter(FromCOREPOSAPI, importing.model.MemberImporter):
 
            withdrew = withdrew.date()
 

	
 
        return {
 
            'id': str(member['cardNo']),
 
            'number': int(member['cardNo']),
 
            'id': str(member['customerAccountID']),
 
            'customer_uuid': customer.uuid,
 
            'joined': joined,
 
            'withdrew': withdrew,
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now