Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029980Openbravo ERP09. Financial managementpublic2015-05-20 13:162015-05-26 11:55
inigosanchez 
aferraz 
immediateminorhave not tried
closedfixed 
5
pi 
3.0PR15Q2.2 
vmromanos
Core
Production - Confirmed Stable
2014-09-23
3.0PR14Q4
https://code.openbravo.com/erp/devel/pi/rev/179d97ee602d [^]
No
0029980: NPE Error raised when a "Recieved From" value is filled in Add Payment P&E window
NPE Error raised when a "Recieved From" value is filled in Add Payment P&E window.This happens when is not exists a payment method.
- As group admin go to [Financial Account] window. Select "Cuenta de Banco".
- Add new Transaction and press "+" selector to open "Add Payment" P&E Window.
- In "Received From" field press in the magnifying glass.
- Select "Sl Rapid, SA" and press OK.

NPE Error is thrown in a popup: org.openbravo.base.exception.OBException: java.lang.NullPointerException
Approved
blocks defect 0029942 closed aferraz NPE Error raised when a "Recieved From" value is filled in Add Payment P&E window 
Issue History
2015-05-22 12:32aferrazTypedefect => backport
2015-05-22 12:32aferrazTarget Version => 3.0PR15Q2.2
2015-05-22 12:32aferrazTag Attached: Approved
2015-05-26 11:54hgbotCheckin
2015-05-26 11:54hgbotNote Added: 0077749
2015-05-26 11:54hgbotStatusscheduled => resolved
2015-05-26 11:54hgbotResolutionopen => fixed
2015-05-26 11:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q2.2/rev/6771c80a477f7d7e0aa2e5bcac1f03707d126def [^]
2015-05-26 11:55vmromanosReview Assigned To => vmromanos
2015-05-26 11:55vmromanosNote Added: 0077751
2015-05-26 11:55vmromanosStatusresolved => closed

Notes
(0077749)
hgbot   
2015-05-26 11:54   
Repository: erp/backports/3.0PR15Q2.2
Changeset: 6771c80a477f7d7e0aa2e5bcac1f03707d126def
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Wed May 20 14:06:47 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2.2/rev/6771c80a477f7d7e0aa2e5bcac1f03707d126def [^]

Fixes issue 29980: NPE in Add Payment process request

When selecting a business partner with the magnifying glass in Add Payment process request, which does not match to the type of the document (a Vendor when the type is Received In); the payment method of the business partner was null and when accessing to its id, a NPE was raised.
Now, if payment method is null will be checked.

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/ReceivedFromPaymentMethodActionHandler.java
---
(0077751)
vmromanos   
2015-05-26 11:55   
Code review + testing OK