Use "complete" composite key for importing CORE equity payments

This commit is contained in:
Lance Edgar 2023-09-13 22:13:37 -05:00
parent b77b5cdf8c
commit 4bff0832e8

View file

@ -258,8 +258,11 @@ class MemberEquityPaymentImporter(FromCOREPOS, corepos_importing.model.MemberEqu
Imports equity payment data from CORE-POS
"""
host_model_class = coretrans.StockPurchase
# TODO: this is composite key for StockPurchase, but may need to change?
key = ('member_uuid', 'received', 'transaction_identifier')
key = ('corepos_card_number',
'corepos_transaction_number',
'corepos_transaction_id',
'corepos_department_number',
'corepos_datetime')
supported_fields = [
'member_uuid',
'amount',