Repository navigation
8.0.0
·
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.quantityfromINTEGERtoDECIMAL(20, 10). - Adjusted the methods
incrementanddecrementofAbstractSpyStockProductentity class to accept Decimal object argument. - Introduced
spy_stock_storetable. - Introduced
spy_stock.is_activefield to allow soft deletion for stocks. - Introduced
StockTransfer,StockCriteriaFilterTransfer,StockResponseTransfertransfer objects. - Changed the facade method signature for:
calculateStockForProduct(),calculateProductStockForStore(),decrementStockProductandincrementStockProductto 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
ProductControllerwith facade changes. - Adjusted
StockFacade::calculateStockForProduct()method to filter out stocks that are inactive. - Impacted
ProductControllerwith facade changes. - Adjusted
StockFacade::expandProductConcreteWithStocks()method to filter out stocks that are inactive. - Impacted
ProductConcreteReadPluginwith 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-extensionto dependencies.
Deprecations
- Deprecated
TypeTransfertransfer object. - Deprecated
StockUpdateHandlerPluginInterfaceinterface. - Deprecated
StockFacade::createStockType()facade method.