From 6e51f36fc5861ad0bea106919d91d21d66a0ddfd Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 18 Mar 2020 12:29:35 -0500 Subject: [PATCH] Import `Member.number` from CORE --- rattail_corepos/importing/corepos/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rattail_corepos/importing/corepos/api.py b/rattail_corepos/importing/corepos/api.py index 0235f03..b080d8c 100644 --- a/rattail_corepos/importing/corepos/api.py +++ b/rattail_corepos/importing/corepos/api.py @@ -483,6 +483,7 @@ class MemberImporter(FromCOREPOSAPI, importing.model.MemberImporter): key = 'id' supported_fields = [ 'id', + 'number', 'customer_uuid', 'joined', 'withdrew', @@ -548,6 +549,7 @@ class MemberImporter(FromCOREPOSAPI, importing.model.MemberImporter): return { 'id': str(member['cardNo']), + 'number': int(member['cardNo']), 'customer_uuid': customer.uuid, 'joined': joined, 'withdrew': withdrew,