Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022106Openbravo ERP09. Financial managementpublic2012-10-25 14:142012-11-21 06:06
pramakrishnan 
pramakrishnan 
normaltrivialalways
closedfixed 
3012.04
pi 
 
naiaramartinez
Google Chrome
Core
No
0022106: Null Pointer Exception in purchase invoice while adding payment
The "Add Payment" button shows null pointer exception if the document currency is different than the business partner's currency
Select "Receive Payments from multiple currencies" and "Make payments in multiple currencies" for the payment method "Transferencia" in Financial Account-> Payment Method

Create price list:
"Organization":F&B España - Región Norte
"Name":IndianPriceList
"Currency":INR

create an invoice
"Organization":F&B España - Región Norte
"Business Partner":Bebidas Alegres, S.L.
"Payment Method":Transferencia
"Price List":IndianPriceList
Create lines and complete the invoice

Click "Add Payment" button
Notice that it throws Null Pointer Exception
No tags attached.
Issue History
2012-10-25 14:14pramakrishnanNew Issue
2012-10-25 14:14pramakrishnanAssigned To => dmiguelez
2012-10-25 14:14pramakrishnanWeb browser => Google Chrome
2012-10-25 14:14pramakrishnanModules => Core
2012-10-25 14:14pramakrishnanAssigned Todmiguelez => pramakrishnan
2012-10-25 14:15pramakrishnanStatusnew => scheduled
2012-10-25 14:15pramakrishnanfix_in_branch => pi
2012-10-25 16:31dmiguelezNote Added: 0053720
2012-11-13 09:01hgbotCheckin
2012-11-13 09:01hgbotNote Added: 0054179
2012-11-13 09:01hgbotStatusscheduled => resolved
2012-11-13 09:01hgbotResolutionopen => fixed
2012-11-13 09:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9d488c89c09ea754e1bf336835e1d31f8e9ced2b [^]
2012-11-13 09:18naiaramartinezReview Assigned To => naiaramartinez
2012-11-13 09:18naiaramartinezNote Added: 0054187
2012-11-13 09:18naiaramartinezStatusresolved => closed
2012-11-21 06:06hudsonbotCheckin
2012-11-21 06:06hudsonbotNote Added: 0054367

Notes
(0053720)
dmiguelez   
2012-10-25 16:31   
Test Plan:

Select "Receive Payments from multiple currencies" and "Make payments in multiple currencies" for the payment method "Transferencia" in Financial Account-> Payment Method

Create price list:
"Organization":F&B España - Región Norte
"Name":IndianPriceList
"Currency":INR

create an invoice
"Organization":F&B España - Región Norte
"Business Partner":Bebidas Alegres, S.L.
"Payment Method":Transferencia
"Price List":IndianPriceList
Create lines and complete the invoice

Click "Add Payment" button
Select the invoice and click process
Notice that the null pointer exception does not appear
(0054179)
hgbot   
2012-11-13 09:01   
Repository: erp/devel/pi
Changeset: 9d488c89c09ea754e1bf336835e1d31f8e9ced2b
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Wed Nov 07 15:33:57 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9d488c89c09ea754e1bf336835e1d31f8e9ced2b [^]

Fixes Issue 22106: NPE in purchase invoice while adding payment

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java
---
(0054187)
naiaramartinez   
2012-11-13 09:18   
Code Review + Testing OK
(0054367)
hudsonbot   
2012-11-21 06:06   
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/c3c5e61b0164 [^]

Maturity status: Test