Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0
-
Fix Version/s: 2.0.0
-
Component/s: manager server, sf server, sf web
-
Labels:None
Description
Currently we support availability via ProductAvailability model which sweeps all available SkuWarehouse.quantity on all SKU's for a particular product.
In a multi store environment where product can be available on different warehouses this is not correct implementation as we need to take into account Shop-Warehouse-Product relation to determine how much stock is available per store.
We need to revise:
ProductEntity.getQtyOnWarehouse()
ProductEntity.getFirstAvailableSkuCode()
ProductEntity.getFirstAvailableSkuQuantity()
ProductSkuEntity.getQuantityOnWarehouse()
ProductSkuEntity.getQty()
enrich methods of ProductSearchResultDTO to include per store
getQtyOnWarehouse()
getFirstAvailableSkuCode()
Additionally need to revise FT boolean queries so that per store inventory is > 0.