Class ExcelEurope1PricesValidator

java.lang.Object
com.hybris.backoffice.excel.validators.ExcelEurope1PricesValidator
All Implemented Interfaces:
ExcelValidator

public class ExcelEurope1PricesValidator extends Object implements ExcelValidator
Validates prices for ExcelEurope1PricesTypeTranslator.
    Format:price currency:'N'|'G':user|userPriceGroup:quantity unit:[dateFrom to dateTo]:channel
 
Validator checks if:
  • price is defined and given currency exists
  • Netto | Gross are in correct format
  • user or userPriceGroup exists
  • unit exists and if user or userPriceGroup is provided this field is mandatory
  • dateFrom and dateTo are in correct format ExcelDateUtils.getDateTimeFormat() and dateFrom is not after dateTo
  • defined channel exists