Remove support for pos_menu_group field in Catapult export

since it's not clear what that value should be, "objectively"
This commit is contained in:
Lance Edgar 2020-04-08 16:12:55 -05:00
parent 74deef63ab
commit c3ecf828fc

View file

@ -78,7 +78,7 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo
# 'disc_mult', # 'disc_mult',
'ideal_margin', 'ideal_margin',
'bottle_deposit', 'bottle_deposit',
'pos_menu_group', # 'pos_menu_group',
'scale_label', 'scale_label',
'sold_by_ea_or_lb', 'sold_by_ea_or_lb',
'quantity_required', 'quantity_required',
@ -407,7 +407,10 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo
# 'disc_mult': None, # 'disc_mult': None,
'bottle_deposit': product.deposit or 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, 'scale_label': 'Y' if scale_item else None,
'sold_by_ea_or_lb': sold_by_ea_or_lb, 'sold_by_ea_or_lb': sold_by_ea_or_lb,
'quantity_required': 'Y' if product.quantity_enforced else None, 'quantity_required': 'Y' if product.quantity_enforced else None,