details:   https://code.openbravo.com/erp/devel/pi/rev/075bbec1e396
changeset: 16482:075bbec1e396
user:      Naiara Martinez <naiara.martinez <at> openbravo.com>
date:      Thu May 10 09:17:40 2012 +0200
summary:   fixed bug 19402 Set generated Credit to 0.00 when it's 
null(FIN_PaymentProcess)

diffstat:

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

diffs (13 lines):

diff -r 9d66f8172e1a -r 075bbec1e396 
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
     Thu May 10 07:03:17 2012 +0200
+++ 
b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
     Thu May 10 09:17:40 2012 +0200
@@ -196,6 +196,9 @@
           payment.setWriteoffAmount(paymentWriteOfAmount);
           payment.setProcessed(true);
           payment.setAPRMProcessPayment("R");
+          if (payment.getGeneratedCredit() == null) {
+            payment.setGeneratedCredit(BigDecimal.ZERO);
+          }
           if (BigDecimal.ZERO.compareTo(payment.getUsedCredit()) != 0
               || BigDecimal.ZERO.compareTo(payment.getGeneratedCredit()) != 0) 
{
             BusinessPartner businessPartner = payment.getBusinessPartner();

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to