/** * Update inventory * * @return void */ protected function doActionUpdateInventory() { parent::doActionUpdateInventory(); \XLite\Core\Database::getRepo('\\XLite\\Module\\CDev\\Wholesale\\Model\\MinQuantity')->deleteByProduct($this->getProduct()); \XLite\Core\Database::getRepo('\\XLite\\Module\\CDev\\Wholesale\\Model\\MinQuantity')->insertInBatch($this->getMinQuantitiesInsertInfo()); }