Related to issue 30098: Backout changeset 49877fccad05
authorAlvaro Ferraz <alvaro.ferraz@openbravo.com>
Wed, 17 Jun 2015 14:25:28 +0200
changeset 27000 9f250bdc7db7
parent 26999 f50c80f95f7e
child 27001 38993c090dd0
Related to issue 30098: Backout changeset 49877fccad05
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java	Tue Jun 16 18:06:36 2015 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java	Wed Jun 17 14:25:28 2015 +0200
@@ -379,8 +379,6 @@
                 // Payment = 0 when the payment is generated by a invoice that consume credit
                 if ((invoicePaidAmounts && paymentScheduleDetail.getInvoicePaymentSchedule() != null)
                     || (paymentScheduleDetail.getOrderPaymentSchedule() != null)
-                    || (paymentScheduleDetail.getInvoicePaymentSchedule() == null && paymentScheduleDetail
-                        .getOrderPaymentSchedule() == null)
                     || (payment.getAmount().compareTo(new BigDecimal("0.00")) == 0)) {
                   if (paymentScheduleDetail.getInvoicePaymentSchedule() != null) {
                     // BP SO_CreditUsed