Import Member.number from CORE

This commit is contained in:
Lance Edgar 2020-03-18 12:29:35 -05:00
parent 8917316a21
commit 6e51f36fc5

View file

@ -483,6 +483,7 @@ class MemberImporter(FromCOREPOSAPI, importing.model.MemberImporter):
key = 'id' key = 'id'
supported_fields = [ supported_fields = [
'id', 'id',
'number',
'customer_uuid', 'customer_uuid',
'joined', 'joined',
'withdrew', 'withdrew',
@ -548,6 +549,7 @@ class MemberImporter(FromCOREPOSAPI, importing.model.MemberImporter):
return { return {
'id': str(member['cardNo']), 'id': str(member['cardNo']),
'number': int(member['cardNo']),
'customer_uuid': customer.uuid, 'customer_uuid': customer.uuid,
'joined': joined, 'joined': joined,
'withdrew': withdrew, 'withdrew': withdrew,