details:   https://code.openbravo.com/erp/devel/pi/rev/d2aab6bd1c3a
changeset: 13690:d2aab6bd1c3a
user:      Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
date:      Fri Sep 09 14:11:18 2011 +0200
summary:   Fixed bug 18431: Void payment in/out with gl item lines does not 
work properly
The payment line should be canceled not removed.
The generated credit should not be affected when voiding a payment with gl 
items.

diffstat:

 
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
 |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 6a079afab77b -r d2aab6bd1c3a 
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
     Fri Sep 09 13:48:27 2011 +0200
+++ 
b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
     Fri Sep 09 14:11:18 2011 +0200
@@ -539,6 +539,8 @@
                         .getOrderPaymentSchedule());
                     OBDal.getInstance().save(mergedScheduleDetail);
                   }
+                } else if (paymentDetail.getGLItem() != null) {
+                  paymentScheduleDetail.setCanceled(true);
                 } else if (paymentScheduleDetail.getOrderPaymentSchedule() == 
null
                     && paymentScheduleDetail.getInvoicePaymentSchedule() == 
null) {
                   // Credit payment

------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to