Openbravo Issue Tracking System - Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0038143 | Modules | Remittance | public | 2018-03-14 15:22 | 2018-03-19 13:02 | |||||||
Reporter | ngarcia | |||||||||||
Assigned To | AtulOpenbravo | |||||||||||
Priority | immediate | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Regression date | 2017-05-31 | |||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/d675cb9dedd4 [^] | |||||||||||
Regression level | Production - Confirmed Stable | |||||||||||
Review Assigned To | aferraz | |||||||||||
Support ticket | 734 | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Regression introduced in release | ||||||||||||
Summary | 0038143: NullPointerException when posting a remittance that includes an invoice with more than two orders | |||||||||||
Description | NullPointerException when posting a remittance that includes an invoice with more than two orders The problem is that in loadLinesFieldProvider function of DocREMRemittance class, it is trying to remove the last element of the list with list.remove(i-1) but i does not contain the list size as some elements have been previously removed | |||||||||||
Steps To Reproduce | As group admin role: Apply module's dataset from Enterprise Module Management window Add Remittance payment method to Cuenta de Banco financial account Configure the Accounting for 'Printable Remittance' Remittance Type Create three purchase orders for the same business partner Set Remittance payment method and book them Create a Purchase Invoice, set Remittance payment method and add the three orders on it Complete it Create a Remittance header, increase its expected date to a date after invoice due date Select Order or Invoices Transaction Type: Payment Out Document: Order and Invoices Select the three lines associated with the invoice Process the remittance with the option 'Group by invoice' Try to post it and check you get the following error: java.lang.NullPointerException The log shows: ERROR org.openbravo.erpCommon.ad_forms.AcctServer - An error ocurred posting RecordId: <> - tableId: FF8080812E6C2859012E6D0271E1009D java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.ArrayList.rangeCheck(ArrayList.java:639) at java.util.ArrayList.remove(ArrayList.java:478) at org.openbravo.module.remittance.ad_forms.DocREMRemittance.loadLinesFieldProvider(DocREMRemittance.java:152) | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2018-03-14 15:22 | ngarcia | New Issue | ||||||||||
2018-03-14 15:22 | ngarcia | Assigned To | => Triage Finance | |||||||||
2018-03-14 15:22 | ngarcia | Support ticket | => 734 | |||||||||
2018-03-14 15:22 | ngarcia | OBNetwork customer | => Yes | |||||||||
2018-03-14 15:24 | ngarcia | Resolution time | => 1522792800 | |||||||||
2018-03-14 15:26 | ngarcia | Relationship added | related to 0036124 | |||||||||
2018-03-14 15:27 | ngarcia | Issue Monitored: networkb | ||||||||||
2018-03-14 15:49 | ngarcia | Priority | urgent => immediate | |||||||||
2018-03-14 15:49 | ngarcia | Relationship replaced | caused by 0036124 | |||||||||
2018-03-15 09:38 | aferraz | Assigned To | Triage Finance => markmm82 | |||||||||
2018-03-15 09:45 | aferraz | Assigned To | markmm82 => AtulOpenbravo | |||||||||
2018-03-16 03:53 | AtulOpenbravo | Status | new => scheduled | |||||||||
2018-03-16 03:53 | AtulOpenbravo | Note Added: 0103292 | ||||||||||
2018-03-16 04:05 | AtulOpenbravo | Note Added: 0103293 | ||||||||||
2018-03-16 09:26 | AtulOpenbravo | Regression date | => 2017-05-31 | |||||||||
2018-03-16 09:26 | AtulOpenbravo | Regression introduced by commit | => https://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/d675cb9dedd4 [^] | |||||||||
2018-03-16 09:26 | AtulOpenbravo | Regression level | => Production - Confirmed Stable | |||||||||
2018-03-19 12:53 | hgbot | Checkin | ||||||||||
2018-03-19 12:53 | hgbot | Note Added: 0103346 | ||||||||||
2018-03-19 12:53 | hgbot | Status | scheduled => resolved | |||||||||
2018-03-19 12:53 | hgbot | Resolution | open => fixed | |||||||||
2018-03-19 12:53 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/mods/org.openbravo.module.remittance/rev/c13cad43cde57402071eb345f84971d73ed58381 [^] | |||||||||
2018-03-19 12:53 | hgbot | Checkin | ||||||||||
2018-03-19 12:53 | hgbot | Note Added: 0103347 | ||||||||||
2018-03-19 13:02 | aferraz | Review Assigned To | => aferraz | |||||||||
2018-03-19 13:02 | aferraz | Note Added: 0103348 | ||||||||||
2018-03-19 13:02 | aferraz | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|