From 154722b78d9d8eb9cad61648849394f0341b32e5 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 18 Mar 2020 12:37:18 -0500 Subject: [PATCH] Change how we import `Member.id` from CORE to match what we do for `Customer.id` --- rattail_corepos/importing/corepos/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rattail_corepos/importing/corepos/api.py b/rattail_corepos/importing/corepos/api.py index b080d8c..241dd5c 100644 --- a/rattail_corepos/importing/corepos/api.py +++ b/rattail_corepos/importing/corepos/api.py @@ -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,