Add 'age_required' to Catapult export

This commit is contained in:
Lance Edgar 2020-03-29 23:35:53 -05:00
parent 5a75a99263
commit 3a956c444d

View file

@ -83,7 +83,7 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo
'tax_2', 'tax_2',
'spec_tend_1', 'spec_tend_1',
'spec_tend_2', 'spec_tend_2',
# 'age_required', 'age_required',
# 'location', # 'location',
# 'family_line', # 'family_line',
# 'alt_id', # 'alt_id',
@ -232,9 +232,9 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo
'tax_2': tax_2 or None, # TODO: logic above is unfinished 'tax_2': tax_2 or None, # TODO: logic above is unfinished
'spec_tend_1': 'EBT' if product.foodstamp else None, 'spec_tend_1': 'EBT' if product.foodstamp else None,
'spec_tend_2': 'WIC' if product.wicable else None, 'spec_tend_2': 'WIC' if product.wicable else None,
'age_required': product.id_enforced or None,
# TODO: does CORE have these? # TODO: does CORE have these?
# 'age_required': None,
# 'location': None, # 'location': None,
# 'family_line': None, # 'family_line': None,