Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020709Openbravo ERP09. Financial managementpublic2012-06-08 10:242012-07-02 12:41
mirurita 
jecharri 
normalmajoralways
closedfixed 
20Community Appliance
 
3.0MP13 
Advanced Payables and Receivables Mngmt
Pre packaging ( pi )
2012-06-07
https://code.openbravo.com/erp/devel/pi/rev/9c63ed5331ae [^]
No
0020709: NPE when adding a payment from invoice
NPE when adding a payment from invoice

getShownScheduledPaymentDetails method on FIN_AddPayment class:

String strSelectedRecords = "";
    if (!"".equals(strSelectedPaymentDetails)) {
      strSelectedRecords = strSelectedPaymentDetails;
      strSelectedRecords = strSelectedRecords.replace("(", "");
      strSelectedRecords = strSelectedRecords.replace(")", "");
    }
1) Create a new invoice
2) Add a new line
3) Complete the invoice
4) Click on 'Add Payment'
5) Error is displayed
No tags attached.
has duplicate defect 0020715 closed mirurita Null pointer exception in Sales Invoice's Add Payment window 
png AddPayment_NPE.png (83,358) 2012-06-08 10:24
https://issues.openbravo.com/file_download.php?file_id=5284&type=bug
png
Issue History
2012-06-08 10:24miruritaNew Issue
2012-06-08 10:24miruritaAssigned To => jecharri
2012-06-08 10:24miruritaFile Added: AddPayment_NPE.png
2012-06-08 10:24miruritaModules => Advanced Payables and Receivables Mngmt
2012-06-08 10:25miruritaRegression level => Pre packaging ( pi )
2012-06-08 10:25miruritaRegression date => 2012-06-07
2012-06-08 10:25miruritaRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/9c63ed5331ae [^]
2012-06-08 10:57hgbotCheckin
2012-06-08 10:57hgbotNote Added: 0049705
2012-06-08 10:57hgbotStatusnew => resolved
2012-06-08 10:57hgbotResolutionopen => fixed
2012-06-08 10:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b37708f3bc77e69d3df41ef8ab6daf2b299ca0a1 [^]
2012-06-08 22:36miruritaRelationship addedhas duplicate 0020715
2012-07-02 12:41miruritaNote Added: 0050315
2012-07-02 12:41miruritaStatusresolved => closed
2012-07-02 12:41miruritaFixed in Version => 3.0MP13

Notes
(0049705)
hgbot   
2012-06-08 10:57   
Repository: erp/devel/pi
Changeset: b37708f3bc77e69d3df41ef8ab6daf2b299ca0a1
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Fri Jun 08 10:55:44 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b37708f3bc77e69d3df41ef8ab6daf2b299ca0a1 [^]

Fixes issue 20709: NPE when adding a payment from invoice
issue 20692: Error 'Out of range' in invoices with two or more orders related

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_AddPayment.java
---
(0050315)
mirurita   
2012-07-02 12:41   
testing OK