From 3a956c444dc2fb7fa5beea2c80b73ca1ccb757a1 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 29 Mar 2020 23:35:53 -0500 Subject: [PATCH] Add 'age_required' to Catapult export --- .../corepos/importing/db/exporters/catapult_inventory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py b/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py index 20177cc..c963b89 100644 --- a/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py +++ b/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py @@ -83,7 +83,7 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo 'tax_2', 'spec_tend_1', 'spec_tend_2', - # 'age_required', + 'age_required', # 'location', # 'family_line', # 'alt_id', @@ -232,9 +232,9 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo 'tax_2': tax_2 or None, # TODO: logic above is unfinished 'spec_tend_1': 'EBT' if product.foodstamp else None, 'spec_tend_2': 'WIC' if product.wicable else None, + 'age_required': product.id_enforced or None, # TODO: does CORE have these? - # 'age_required': None, # 'location': None, # 'family_line': None,