Author: arunpatidar
Date: Sat Jun 20 10:46:24 2015
New Revision: 1686552
URL:
http://svn.apache.org/r1686552Log:
Applied fix from trunk for revision: 1686545
===
[OFBIZ-6347] Applied patch from task. Removed code to create duplicate OPP record. Thanks Mohammad Kathawala for the patch.
Modified:
ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
Modified: ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java?rev=1686552&r1=1686551&r2=1686552&view=diff==============================================================================
--- ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java (original)
+++ ofbiz/branches/release13.07/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java Sat Jun 20 10:46:24 2015
@@ -3824,18 +3824,6 @@ public class ShoppingCart implements Ite
if (billingAccountAvailableAmount.compareTo(getBillingAccountAmount()) < 0) {
this.billingAccountAmt = billingAccountAvailableAmount;
}
- BigDecimal billingAccountAmountSelected = getBillingAccountAmount();
- GenericValue opp = delegator.makeValue("OrderPaymentPreference", new HashMap<String, Object>());
- opp.set("paymentMethodTypeId", "EXT_BILLACT");
- opp.set("presentFlag", "N");
- opp.set("overflowFlag", "N");
- opp.set("maxAmount", billingAccountAmountSelected);
- opp.set("statusId", "PAYMENT_NOT_RECEIVED");
- allOpPrefs.add(opp);
- remainingAmount = remainingAmount.subtract(billingAccountAmountSelected);
- if (remainingAmount.compareTo(BigDecimal.ZERO) < 0) {
- remainingAmount = BigDecimal.ZERO;
- }
}
for(CartPaymentInfo inf : paymentInfo) {
if (inf.amount == null) {