You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2007/07/05 11:45:49 UTC
svn commit: r553440 -
/ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
Author: lektran
Date: Thu Jul 5 02:45:48 2007
New Revision: 553440
URL: http://svn.apache.org/viewvc?view=rev&rev=553440
Log:
Applied fix from trunk for revision: 543721
Modified:
ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
Modified: ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java?view=diff&rev=553440&r1=553439&r2=553440
==============================================================================
--- ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java (original)
+++ ofbiz/branches/release4.0/applications/accounting/src/org/ofbiz/accounting/payment/PaymentGatewayServices.java Thu Jul 5 02:45:48 2007
@@ -1178,8 +1178,8 @@
}
// create any splits which are needed
- if (authAmount.compareTo(amountThisCapture) == 1) {
- BigDecimal splitAmount = authAmount.subtract(amountThisCapture);
+ if (authAmount.compareTo(amountCapturedBd) == 1) {
+ BigDecimal splitAmount = authAmount.subtract(amountCapturedBd);
try {
Map splitCtx = UtilMisc.toMap("userLogin", userLogin, "orderPaymentPreference", paymentPref, "splitAmount", splitAmount);
dispatcher.addCommitService("processCaptureSplitPayment", splitCtx, true);