From 45f05032fbf0d58152db5d4e1b6b5ed32512e223 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 30 Mar 2020 09:47:13 -0500 Subject: [PATCH] Add 'pf1' (subdepartment number) to Catapult export --- .../corepos/importing/db/exporters/catapult_inventory.py | 5 +++-- 1 file changed, 3 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 0199e92..4d58a13 100644 --- a/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py +++ b/rattail_corepos/corepos/importing/db/exporters/catapult_inventory.py @@ -98,7 +98,7 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo # 'num_pkgs', # 'cs_pk_multiplier', # 'dsd', - # 'pf1', + 'pf1', # 'pf2', # 'pf3', # 'pf4', @@ -294,8 +294,9 @@ class InventoryItemImporter(FromCore, catapult_importing.model.InventoryItemImpo # TODO: does CORE have this? # 'dsd': None, + 'pf1': product.subdepartment.number if product.subdepartment else None, + # TODO: are these needed? - # 'pf1', # 'pf2', # 'pf3', # 'pf4',