Class SapOmsDataHubStockLevelTranslator

  • All Implemented Interfaces:
    SpecialValueTranslator

    public class SapOmsDataHubStockLevelTranslator
    extends DataHubTranslator<SapDataHubInboundStockLevelHelper>
    Translator to update the stock level in the platform after the stock value is replicated from ERP. 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