From 6a58f5f5d3d69014d6b1feb0ca27edbae2c2ef1c Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 29 Mar 2020 13:33:38 -0500 Subject: [PATCH] Let inventory batch handler decide if products should be aggregated --- tailbone/views/batch/inventory.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tailbone/views/batch/inventory.py b/tailbone/views/batch/inventory.py index b15ed089..1932cf97 100644 --- a/tailbone/views/batch/inventory.py +++ b/tailbone/views/batch/inventory.py @@ -309,14 +309,13 @@ class InventoryBatchView(BatchMasterView): def allow_cases(self, batch): return self.handler.allow_cases(batch) + # TODO: deprecate / remove this def should_aggregate_products(self, batch): """ Must return a boolean indicating whether rows should be aggregated by product for the given batch. """ - if batch.mode == self.enum.INVENTORY_MODE_VARIANCE: - return True - return False + return self.handler.should_aggregate_products(batch) def desktop_lookup(self): """