Class Europe1PricesTranslator.Europe1PriceRowTranslator

  • Enclosing class:
    Europe1PricesTranslator

    public static class Europe1PricesTranslator.Europe1PriceRowTranslator
    extends Europe1RowTranslator
    Translates a single price (row) expression. All prices are assigned to the imported product directly.

    Syntax:

            ( ({user}|{userPriceGroup})? {quantity} {unitCode} '=')?
        {price} ({currencyISO}|{currencySign}) ('B'|'N'|'G')?
            ('['{from}','{to}']')? ({priceRowChannel})?
     

    Some examples:

    • '10 EUR' ... creates a PriceRow with min quantity 1, unit taken from product, 10 as price and the 'USD' currency
    • '2 pieces = 10 $' ... creates a PriceRow with min quantity 2, unit pieces, 10 as price and the currency with $ as sign
    • ' axel 20 pieces = 3,20 BP' ... creates a PriceRow for customer axel, with min quantity 20, unit pieces, 3,20 as price and the the 'BP' currency
    • '10 EUR [01.01.2005,31.12.2005]' ... creates a PriceRow with min quantity 1, unit taken from product, 10 as price and the 'EUR' currency, which is active from 01.01.2005 until 31.12.2005
    If you do not specify times for the date range, the time 00:00:00 is used for start date and 23:59:59 for end date. For specifying you own times, do not forget to use the dateformat modifier and pay attention for the fact, that the time of the end date is transformed to 23:59:59 if it was imported as 00:00:00. If you want to disable this transformation logic, override the Europe1RowTranslator.transformEndDate(java.util.Date) method.
    • Constructor Detail

      • Europe1PriceRowTranslator

        public Europe1PriceRowTranslator()
      • Europe1PriceRowTranslator

        public Europe1PriceRowTranslator​(java.text.SimpleDateFormat dateFormat,
                                         java.text.NumberFormat numberFormat,
                                         java.util.Locale loc)