Compiere 3.1

org.compiere.translate
Class AmtInWords_TH

java.lang.Object
  extended by org.compiere.translate.AmtInWords_TH
All Implemented Interfaces:
AmtInWords

public class AmtInWords_TH
extends Object
implements AmtInWords

Amount in Words for Thai

Version:
$Id: AmtInWords_TH.java,v 1.2 2005/04/19 04:43:31 jjanke Exp $
Author:
Sureeraya Limpaibul - http://www.rgagnon.com/javadetails/java-0426.html

Constructor Summary
AmtInWords_TH()
          AmtInWords_TH 0.23 = �ٹ�� 23/100 1.23 = ˹�觺ҷ 23/100 11.45 = �Ժ��紺ҷ 45/100 121.45 = ˹����������Ժ��紺ҷ 45/100 1231.56 = ˹�觾ѹ�ͧ��������Ժ��紺ҷ 56/100 12341.78 = ˹�������ͧ�ѹ�����������Ժ��紺ҷ 78/100 123451.89 = ˹���ʹ�ͧ������~ѹ�����������Ժ��紺ҷ 89/100 12234571.90 = �Ժ�ͧ��ҹ �ͧ�ʹ����������ѹ����������Ժ��紺ҷ 90/100 123234571.90 = ˹����������Ժ�����ҹ �ͧ�ʹ����������ѹ����������Ժ��紺ҷ 90/100 1987234571.90 = ˹�觾ѹ�������Ỵ�Ժ����ҹ �ͧ�ʹ����������ѹ����������Ժ��紺ҷ 90/100 0.00 = �ٹ�� 00/100
 
Method Summary
 String getAmtInWords(String amount)
          Get Amount in Words
 String getAmtInWords(String amount, String iso)
          Get Amount in Words
static void main(String[] args)
          Test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmtInWords_TH

public AmtInWords_TH()
AmtInWords_TH 0.23 = �ٹ�� 23/100 1.23 = ˹�觺ҷ 23/100 11.45 = �Ժ��紺ҷ 45/100 121.45 = ˹����������Ժ��紺ҷ 45/100 1231.56 = ˹�觾ѹ�ͧ��������Ժ��紺ҷ 56/100 12341.78 = ˹�������ͧ�ѹ�����������Ժ��紺ҷ 78/100 123451.89 = ˹���ʹ�ͧ������~ѹ�����������Ժ��紺ҷ 89/100 12234571.90 = �Ժ�ͧ��ҹ �ͧ�ʹ����������ѹ����������Ժ��紺ҷ 90/100 123234571.90 = ˹����������Ժ�����ҹ �ͧ�ʹ����������ѹ����������Ժ��紺ҷ 90/100 1987234571.90 = ˹�觾ѹ�������Ỵ�Ժ����ҹ �ͧ�ʹ����������ѹ����������Ժ��紺ҷ 90/100 0.00 = �ٹ�� 00/100

Method Detail

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

getAmtInWords

public String getAmtInWords(String amount,
                            String iso)
                     throws Exception
Get Amount in Words

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

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.