Skip to content

8.0.0

Choose a tag to compare

@spryker-release-bot spryker-release-bot released this 26 Nov 11:55
· 567 commits to master since this release

Included commits: 7.1.0...8.0.0

Improvements

  • Changed the database column type for: spy_stock_product.quantity from INTEGER to DECIMAL(20, 10).
  • Adjusted the methods increment and decrement of AbstractSpyStockProduct entity class to accept Decimal object argument.
  • Introduced spy_stock_store table.
  • Introduced spy_stock.is_active field to allow soft deletion for stocks.
  • Introduced StockTransfer, StockCriteriaFilterTransfer, StockResponseTransfer transfer objects.
  • Changed the facade method signature for: calculateStockForProduct(), calculateProductStockForStore(), decrementStockProduct and incrementStockProduct to a Decimal object argument and return type intead of integer.
  • Introduced StockFacade::findStockById() facade method to find stock by provided id.
  • Introduced StockFacade::findStockByName() facade method to find stock by provided name.
  • Introduced StockFacade::createStock() facade method to persist new stock entity to the database.
  • Introduced StockFacade::updateStock() facade method to update stock entity in the database.
  • Introduced StockFacade::getStoresWhereProductStockIsDefined() facade method to get all stores that have relationship with stock where product with given sku is defined.
  • Introduced StockFacade:: getAvailableWarehousesForStore() facade method to get all available stocls for given store.
  • Introduced StockFacade:: isProductAbstractNeverOutOfStockForStore() facade method to check if the abstract product has any stock product that is set as "never out of stock".
  • Introduced StockFacade::calculateProductAbstractStockForStore() facade method to calculate the total stock amount of the abstract product for all its available stock types and store.
  • Adjusted StockFacade::isNeverOutOfStock() method to filter out stocks that are inactive.
  • Impacted ProductController with facade changes.
  • Adjusted StockFacade::calculateStockForProduct() method to filter out stocks that are inactive.
  • Impacted ProductController with facade changes.
  • Adjusted StockFacade::expandProductConcreteWithStocks() method to filter out stocks that are inactive.
  • Impacted ProductConcreteReadPlugin with facade changes.
  • Adjusted StockFacade::getStockProductsByIdProduct() method to filter out stocks that are inactive.
  • Removed StockConfig::getStoreToWarehouseMapping() config method.
  • Added StockToStoreFacadeInterface::getAllStores() to dependencies.
  • Added spryker/stock-extension to dependencies.

Deprecations

  • Deprecated TypeTransfer transfer object.
  • Deprecated StockUpdateHandlerPluginInterface interface.
  • Deprecated StockFacade::createStockType() facade method.