From b6e4ad2a21af8a8728333607db16860f6cec5e51 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 18 Jun 2023 17:19:43 -0500 Subject: [PATCH] Import `Member.corepos_account_id` 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 bae12a0..835d9ce 100644 --- a/rattail_corepos/importing/corepos/api.py +++ b/rattail_corepos/importing/corepos/api.py @@ -787,6 +787,7 @@ class MemberImporter(FromCOREPOSAPI, corepos_importing.model.MemberImporter): key = 'number' supported_fields = [ 'number', + 'corepos_account_id', 'customer_uuid', 'person_uuid', 'membership_type_number', @@ -881,6 +882,7 @@ class MemberImporter(FromCOREPOSAPI, corepos_importing.model.MemberImporter): return { 'number': card_number, + 'corepos_account_id': int(member['customerAccountID']), 'customer_uuid': customer.uuid, 'person_uuid': person.uuid, 'membership_type_number': typeno,