Skip to content

Commit

Permalink
[OFBIZ-6347] Applied patch from task. Removed code to create duplicat…
Browse files Browse the repository at this point in the history
…e OPP record. Thanks Mohammad Kathawala for the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686545 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Arun Patidar committed Jun 20, 2015
1 parent 6cc9854 commit c4fedec
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3852,18 +3852,6 @@ public List<GenericValue> makeAllOrderPaymentInfos(LocalDispatcher dispatcher) {
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) {
Expand Down

0 comments on commit c4fedec

Please sign in to comment.