Add 'ideal_margin' for Catapult export
This commit is contained in:
parent
3a956c444d
commit
06f40f350e
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue