Class AmtInWords_IN

java.lang.Object
org.compiere.util.AmtInWords_IN
All Implemented Interfaces:
AmtInWords

public class AmtInWords_IN extends Object implements AmtInWords
Amount in Words for Bahasa Indonesia Bugs item #1569711: remove hard-coded "Rupiah" to support all currency Contributor: Armen Rizal (www.goodwill.co.id)
Version:
$Id: AmtInWords_IN.java,v 1.3 2006/07/30 00:54:36 jjanke Exp $
Author:
Halim Englen
  • Constructor Details

    • AmtInWords_IN

      public AmtInWords_IN()
      AmtInWords_IN
  • Method Details

    • sayNumber

      public static String sayNumber(double number)
      Convenient method for sayNumber(StringBuffer, double).
      Parameters:
      number - number to say
      Returns:
      said number
    • sayNumber

      public static String sayNumber(StringBuffer appendTo, double number) throws IllegalArgumentException
      Say a number. This method will append the result to the given string buffer.
      Parameters:
      appendTo - the string buffer
      number - number to say
      Returns:
      said number
      Throws:
      IllegalArgumentException - if the number equals to Long.MIN_VALUE
    • saySimpleNumber

      protected static void saySimpleNumber(StringBuffer appendTo, int number)
    • getAmtInWords

      public String getAmtInWords(String amount) throws Exception
      Get Amount in Words
      Specified by:
      getAmtInWords in interface AmtInWords
      Parameters:
      amount - numeric amount (352.80)
      Returns:
      amount in words (three*five*two 80/100)
      Throws:
      Exception
    • main

      public static void main(String[] args)
      Test
      Parameters:
      args - ignored