Class SapOmsDataHubStockLevelTranslator
- java.lang.Object
-
- de.hybris.platform.impex.jalo.translators.AbstractSpecialValueTranslator
-
- de.hybris.platform.sap.orderexchange.inbound.events.DataHubTranslator<SapDataHubInboundStockLevelHelper>
-
- de.hybris.platform.sap.saporderexchangeoms.datahub.inbound.events.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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHELPER_BEAN
-
Constructor Summary
Constructors Constructor Description SapOmsDataHubStockLevelTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidperformImport(java.lang.String stockLevelQuantity, Item stockLevelItem)Called each time a non-empty cell value has to be imported.-
Methods inherited from class de.hybris.platform.sap.orderexchange.inbound.events.DataHubTranslator
getInboundHelper, init, isEmpty, performExport, setInboundHelper, validate
-
-
-
-
Field Detail
-
HELPER_BEAN
public static final java.lang.String HELPER_BEAN
- See Also:
- Constant Field Values
-
-
Method Detail
-
performImport
public void performImport(java.lang.String stockLevelQuantity, Item stockLevelItem) throws ImpExExceptionDescription copied from interface:SpecialValueTranslatorCalled each time a non-empty cell value has to be imported.- Specified by:
performImportin interfaceSpecialValueTranslator- Overrides:
performImportin classAbstractSpecialValueTranslator- Parameters:
stockLevelQuantity- the cell value stringstockLevelItem- the item to import the value for- Throws:
ImpExException- indicates an import error
-
-