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): """