details: /erp/devel/pi/rev/e10f8830f2ff
changeset: 12255:e10f8830f2ff
user: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
date: Thu May 19 18:10:08 2011 +0200
summary: fixes credit used undo calculation when payment is reactivated
diffstat:
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
| 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r a28e971bba39 -r e10f8830f2ff
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 19 18:05:51 2011 +0200
+++
b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
Thu May 19 18:10:08 2011 +0200
@@ -513,7 +513,7 @@
BigDecimal pendingDeallocateAmount = usedAmount;
for (FIN_Payment payment : payments) {
BigDecimal paymentUsedAmount = payment.getUsedCredit();
- if (pendingDeallocateAmount.compareTo(usedAmount) == 1) {
+ if (usedAmount.compareTo(paymentUsedAmount) == 1) {
payment.setUsedCredit(BigDecimal.ZERO);
pendingDeallocateAmount =
pendingDeallocateAmount.subtract(paymentUsedAmount);
OBDal.getInstance().save(payment);
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits