From: Anneli <an...@us...> - 2005-01-17 10:24:02
|
Update of /cvsroot/redpos/RedPOS/src/org/redpos/client/contract In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17783/src/org/redpos/client/contract Modified Files: POSEngineUtility.java Log Message: New type of payment SimpleCurrencyExchange, enter rate on one currency in properties.xml, when using this payment type the amount will be shown in the currency entered, this is just for the gui part, no info about rate or will be saved in the database. Index: POSEngineUtility.java =================================================================== RCS file: /cvsroot/redpos/RedPOS/src/org/redpos/client/contract/POSEngineUtility.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** POSEngineUtility.java 20 Dec 2004 07:56:13 -0000 1.2 --- POSEngineUtility.java 17 Jan 2005 10:23:22 -0000 1.3 *************** *** 184,187 **** --- 184,209 ---- return isLoginPerReciept.booleanValue(); } + + /** + * Returns currencyRate + * + * @return + * @throws JMException + */ + public double getCurrencyRate() throws JMException + { + return ((Double)this.getAttribute("CurrencyRate")).doubleValue(); + } + + /** + * Returns currencyRate + * + * @return + * @throws JMException + */ + public String getCurrencyRateString() throws JMException + { + return this.getAttribute("CurrencyRate").toString(); + } /** |