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):
|
def allow_cases(self, batch):
|
||||||
return self.handler.allow_cases(batch)
|
return self.handler.allow_cases(batch)
|
||||||
|
|
||||||
|
# TODO: deprecate / remove this
|
||||||
def should_aggregate_products(self, batch):
|
def should_aggregate_products(self, batch):
|
||||||
"""
|
"""
|
||||||
Must return a boolean indicating whether rows should be aggregated by
|
Must return a boolean indicating whether rows should be aggregated by
|
||||||
product for the given batch.
|
product for the given batch.
|
||||||
"""
|
"""
|
||||||
if batch.mode == self.enum.INVENTORY_MODE_VARIANCE:
|
return self.handler.should_aggregate_products(batch)
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def desktop_lookup(self):
|
def desktop_lookup(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue