Uploaded image for project: 'YesCart'
  1. YesCart
  2. YC-306

Product availability calculations

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • 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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                denis Denis Pavlov
                Reporter:
                denis Denis Pavlov
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: