Package pl.bigk.utils.lexengines

Examples of pl.bigk.utils.lexengines.LexEngine


        recalcTotalOfIPSService.recalculateTotal(ip1);
      }
     
      // get text for ip1::total
      BigDecimal total = ip1.getTotal();
      LexEngine le = new LexEnginePL();
     
      long integerPart = total.longValue();
      long digitsPart = total.multiply(new BigDecimal(100d)).remainder(new BigDecimal(100d)).longValue();
     
      invoice.setHrTotalIntegerPart(le.getTextForNumber(integerPart));
      invoice.setHrTotalDigitsPart(le.getTextForNumber(digitsPart));
     
      if (logger.isDebugEnabled()) {
        logger.debug("recalculateInvoice(Invoice) - set - hrTotalIntegerPart=" + invoice.getHrTotalIntegerPart());
        logger.debug("recalculateInvoice(Invoice) - set - hrTotalDigitsPart=" + invoice.getHrTotalDigitsPart());
      }
View Full Code Here

TOP

Related Classes of pl.bigk.utils.lexengines.LexEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.