// stock : bugs fix and update of supplier order add product interface
This commit is contained in:
@@ -175,12 +175,19 @@ class AdminStockCoverControllerCore extends AdminController
|
||||
if ((int)$item['variations'] <= 0)
|
||||
{
|
||||
if ($this->getCurrentCoverageWarehouse() == -1) // if all warehouses
|
||||
$item['coverage'] = StockManagerFactory::getManager()->getProductCoverage($item['id'], 0, $this->getCurrentCoveragePeriod());
|
||||
$item['coverage'] = StockManagerFactory::getManager()->getProductCoverage(
|
||||
$item['id'],
|
||||
0,
|
||||
$this->getCurrentCoveragePeriod()
|
||||
);
|
||||
else // else selected warehouse
|
||||
$item['coverage'] = StockManagerFactory::getManager()->getProductCoverage($item['id'],
|
||||
0,
|
||||
$this->getCurrentCoveragePeriod(),
|
||||
$this->getCurrentCoverageWarehouse());
|
||||
$item['coverage'] = StockManagerFactory::getManager()->getProductCoverage(
|
||||
$item['id'],
|
||||
0,
|
||||
$this->getCurrentCoveragePeriod(),
|
||||
$this->getCurrentCoverageWarehouse()
|
||||
);
|
||||
|
||||
// removes 'details' action on products without attributes
|
||||
$this->addRowActionSkipList('details', array($item['id']));
|
||||
}
|
||||
@@ -227,4 +234,4 @@ class AdminStockCoverControllerCore extends AdminController
|
||||
}
|
||||
return $warehouse;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user