Class SapOmsDataHubInboundStockLevelHelper

    • Constructor Detail

      • SapOmsDataHubInboundStockLevelHelper

        public SapOmsDataHubInboundStockLevelHelper()
    • Method Detail

      • processStockLevelNotification

        public void processStockLevelNotification​(java.lang.String stockLevelQuantity,
                                                  Item stockLevelItem)
        Description copied from interface: SapDataHubInboundStockLevelHelper
        After the stock replication from ERP, we have one of the following scenarios: 1. Not shipped allocations + hybris ATP > ERP Stock Level -> Increase inventory event (-the difference) 2. Not shipped allocations + hybris ATP < ERP Stock Level -> Increase inventory event (the difference) 3. Not shipped allocations + hybris ATP = ERP Stock Level -> Do not do anything
        Specified by:
        processStockLevelNotification in interface SapDataHubInboundStockLevelHelper
      • updateStockLevel

        protected void updateStockLevel​(Item stockLevelItem,
                                        java.lang.Long quantity)
      • updateStockLevel

        protected void updateStockLevel​(StockLevelModel stockLevelModel,
                                        java.lang.Long quantity)
      • isInitialStockLevel

        protected boolean isInitialStockLevel​(StockLevelModel stockLevelModel)
      • calculateStockLevelUnShippedQuantity

        protected java.lang.Long calculateStockLevelUnShippedQuantity​(StockLevelModel stockLevel)
      • readAndValidateQuantity

        protected java.lang.Long readAndValidateQuantity​(java.lang.String quantity)
      • setInventoryEventService

        public void setInventoryEventService​(InventoryEventService inventoryEventService)
      • getModelService

        protected ModelService getModelService()
      • setModelService

        public void setModelService​(ModelService modelService)