Let inventory batch handler decide if products should be aggregated
This commit is contained in:
parent
12b567d3d2
commit
6a58f5f5d3
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue