Use "complete" composite key for importing CORE equity payments
This commit is contained in:
		
							parent
							
								
									b77b5cdf8c
								
							
						
					
					
						commit
						4bff0832e8
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -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', | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar