From 4e19de63b47c5f3bcece2cbbf8797426c90229f5 Mon Sep 17 00:00:00 2001 From: mjudd Date: Mon, 25 Jun 2007 17:09:56 +0000 Subject: [PATCH] BugFix http://sourceforge.net/tracker/index.php?func=detail&aid=1742903&group_id=176962&atid=879332 Amounts over 999.99 fail in VPayment for Credit Card and Check(Cheque) --- client/src/org/compiere/grid/VPayment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/grid/VPayment.java b/client/src/org/compiere/grid/VPayment.java index 9b157c0274..ca8dc974ac 100644 --- a/client/src/org/compiere/grid/VPayment.java +++ b/client/src/org/compiere/grid/VPayment.java @@ -1087,7 +1087,7 @@ public class VPayment extends CDialog m_mPayment.setCreditCard(MPayment.TRXTYPE_Sales, newCCType, kNumberField.getText(), "", kExpField.getText()); // Get changes to credit card amount - m_mPayment.setAmount(m_C_Currency_ID, new BigDecimal(m_Format.format(kAmountField.getText()))); + m_mPayment.setAmount(m_C_Currency_ID, new BigDecimal(kAmountField.getText().replaceAll(",",""))); m_mPayment.setPaymentProcessor(); } else if (newPaymentRule.equals(MOrder.PAYMENTRULE_DirectDeposit) @@ -1102,7 +1102,7 @@ public class VPayment extends CDialog m_mPayment.setBankCheck(newC_BankAccount_ID, m_isSOTrx, sRoutingField.getText(), sNumberField.getText(), sCheckField.getText()); // Get changes to check amount - m_mPayment.setAmount(m_C_Currency_ID, new BigDecimal(m_Format.format(sAmountField.getText()))); + m_mPayment.setAmount(m_C_Currency_ID, new BigDecimal(sAmountField.getText().replaceAll(",",""))); } m_mPayment.setC_BPartner_ID(m_C_BPartner_ID); m_mPayment.setC_Invoice_ID(C_Invoice_ID);