Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020754Openbravo ERP09. Financial managementpublic2012-06-13 19:042012-06-27 05:28
mirurita 
eduardo_Argal 
normalmajoralways
closedfixed 
20Community Appliance
 
3.0MP13 
Advanced Payables and Receivables Mngmt
No
0020754: Reactivate payment: java.lang.IndexOutOfBoundsException using write off
After reactivating a payment using credit, if you click on add details and select write off option the process fails.
1) Create a Sales Invoice (SO1) for Alimentos. Total= 15€
2) Create a Sales Invoice (SO2) for Alimentos. Total= 5.9€
3) Generate credit of 9€ to Alimentos
4) Create a new payment for both invoices. Total= 20.9€
5) Reactivate the payment
6) Click on Add Details and configure the payment (see attached screenshot)
 - Actual Payment In: 1
 - User Available Credit: 9
 - Write off the difference
7) Process the payment
8) Error
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(ArrayList.java:571)
    at java.util.ArrayList.get(ArrayList.java:349)
    at org.openbravo.advpaymentmngt.process.FIN_AddPayment.savePayment(FIN_AddPayment.java:228)
No tags attached.
png Reactivate_Payment2.png (61,133) 2012-06-13 19:04
https://issues.openbravo.com/file_download.php?file_id=5291&type=bug
png
Issue History
2012-06-13 19:04miruritaNew Issue
2012-06-13 19:04miruritaAssigned To => eduardo_Argal
2012-06-13 19:04miruritaFile Added: Reactivate_Payment2.png
2012-06-13 19:04miruritaModules => Advanced Payables and Receivables Mngmt
2012-06-14 18:53hgbotCheckin
2012-06-14 18:53hgbotNote Added: 0049845
2012-06-14 18:53hgbotStatusnew => resolved
2012-06-14 18:53hgbotResolutionopen => fixed
2012-06-14 18:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/004ee0b3325192243540b4ea7325d4320ef0eeae [^]
2012-06-18 16:34miruritaNote Added: 0049896
2012-06-18 16:34miruritaStatusresolved => new
2012-06-18 16:34miruritaResolutionfixed => open
2012-06-19 11:23hgbotCheckin
2012-06-19 11:23hgbotNote Added: 0049911
2012-06-19 11:23hgbotStatusnew => resolved
2012-06-19 11:23hgbotResolutionopen => fixed
2012-06-19 11:23hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/004ee0b3325192243540b4ea7325d4320ef0eeae [^] => http://code.openbravo.com/erp/devel/pi/rev/4b3ac264a0ce683ac820807184de40dd0e74e93d [^]
2012-06-21 12:06miruritaNote Added: 0049979
2012-06-21 12:06miruritaStatusresolved => closed
2012-06-21 12:06miruritaFixed in Version => 3.0MP13
2012-06-27 05:28hudsonbotCheckin
2012-06-27 05:28hudsonbotNote Added: 0050121

Notes
(0049845)
hgbot   
2012-06-14 18:53   
Repository: erp/devel/pi
Changeset: 004ee0b3325192243540b4ea7325d4320ef0eeae
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Thu Jun 14 17:33:57 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/004ee0b3325192243540b4ea7325d4320ef0eeae [^]

Fixes bug 20754

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.java
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
---
(0049896)
mirurita   
2012-06-18 16:34   
After you process the refund payment, the invoices included in the first payment does not appear available to be paid.
(0049911)
hgbot   
2012-06-19 11:23   
Repository: erp/devel/pi
Changeset: 4b3ac264a0ce683ac820807184de40dd0e74e93d
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Tue Jun 19 11:23:09 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4b3ac264a0ce683ac820807184de40dd0e74e93d [^]

Fixes bug 20754

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddOrderOrInvoice.java
---
(0049979)
mirurita   
2012-06-21 12:06   
testing OK
(0050121)
hudsonbot   
2012-06-27 05:28   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/cf3a7135839f [^]

Maturity status: Test