From c3ecf828fcc37ce2c371d29f156ec98c11dcc860 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 8 Apr 2020 16:12:55 -0500 Subject: [PATCH] Remove support for `pos_menu_group` field in Catapult export since it's not clear what that value should be, "objectively" --- .../corepos/importing/db/exporters/catapult_inventory.py | 7 +++++-- 1 file changed, 5 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 bf3ed08..f3848ad 100644 --- a/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py +++ b/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py @@ -78,7 +78,7 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo # 'disc_mult', 'ideal_margin', 'bottle_deposit', - 'pos_menu_group', + # 'pos_menu_group', 'scale_label', 'sold_by_ea_or_lb', 'quantity_required', @@ -407,7 +407,10 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo # 'disc_mult': None, 'bottle_deposit': product.deposit or None, - 'pos_menu_group': product.subdepartment.name if product.subdepartment else None, + + # TODO: does CORE have this? + # 'pos_menu_group': None, + 'scale_label': 'Y' if scale_item else None, 'sold_by_ea_or_lb': sold_by_ea_or_lb, 'quantity_required': 'Y' if product.quantity_enforced else None,