From 06f40f350efeeb84a208ae0cad04873218a4180a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 30 Mar 2020 00:06:01 -0500 Subject: [PATCH] Add 'ideal_margin' for 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 c963b89..d5954c1 100644 --- a/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py +++ b/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py @@ -72,7 +72,7 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo 'price_divider', 'base_price', # 'disc_mult', - # 'ideal_margin', + 'ideal_margin', 'bottle_deposit', 'pos_menu_group', # 'scale_label', @@ -214,10 +214,10 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo 'last_cost': product.cost, 'price_divider': product.quantity or 1, # TODO: is this right? 'base_price': product.normal_price, + 'ideal_margin': department.margin * 100 if department.margin else None, # TODO: does CORE have these? # 'disc_mult': None, - # 'ideal_margin': None, 'bottle_deposit': product.deposit or None, 'pos_menu_group': product.subdepartment.name if product.subdepartment else None,