From eb051d677333e680f67b45af1098507c42a4373d Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 30 Jul 2007 10:29:32 +0000 Subject: [PATCH] BF [ 1763488 ] Error on cash payment http://sourceforge.net/tracker/index.php?func=detail&aid=1763488&group_id=176962&atid=879332 --- client/src/org/compiere/grid/VPayment.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/grid/VPayment.java b/client/src/org/compiere/grid/VPayment.java index 26d4b20ad8..39c545a192 100644 --- a/client/src/org/compiere/grid/VPayment.java +++ b/client/src/org/compiere/grid/VPayment.java @@ -59,6 +59,8 @@ import org.compiere.util.*; * * @author Jorg Janke * @version $Id: VPayment.java,v 1.2 2006/07/30 00:51:28 jjanke Exp $ + * + * @author Teo Sarca, SC ARHIPAC SERVICE SRL - BF [ 1763488 ] */ public class VPayment extends CDialog implements ActionListener @@ -458,7 +460,7 @@ public class VPayment extends CDialog kExpField.setText(m_mPayment.getCreditCardExp(null)); kApprovalField.setText(m_mPayment.getVoiceAuthCode()); kStatus.setText(m_mPayment.getR_PnRef()); - kAmountField.setValue(m_Format.format(m_mPayment.getPayAmt())); + kAmountField.setValue(m_mPayment.getPayAmt()); // if approved/paid, don't let it change kTypeCombo.setReadWrite(!m_mPayment.isApproved()); @@ -499,7 +501,7 @@ public class VPayment extends CDialog { m_cashLine = new MCashLine (Env.getCtx(), m_C_CashLine_ID, null); m_DateAcct = m_cashLine.getStatementDate(); - bAmountField.setValue(m_cashLine.getAmount().toString()); + bAmountField.setValue(m_cashLine.getAmount()); } }