Author: arunpatidar
Date: Sat Jun 20 10:20:32 2015
New Revision: 1686545
URL:
http://svn.apache.org/r1686545Log:
[OFBIZ-6347] Applied patch from task. Removed code to create duplicate OPP record. Thanks Mohammad Kathawala for the patch.
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java?rev=1686545&r1=1686544&r2=1686545&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java Sat Jun 20 10:20:32 2015
@@ -3852,18 +3852,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) {