Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018362Openbravo ERPZ. Otherspublic2011-08-26 10:312011-08-31 17:20
maite 
mirurita 
urgentmajoralways
closedfixed 
5
pi 
3.0MP33.0MP3 
OBPS
Advanced Payables and Receivables Mngmt
12427
No
0018362: Error when posting transaction associated to a payment with line referencing GLItem
"Error during execution" when posting transaction associated to a payment with line referencing GLItem
1. Define GLitem and configure accounting for it
2. Create Payment Out for any BP. Press Add Details and select your GLItem and any amount. Process and deposit
3. Go to Transactions tab and try to post associated transaction. Error will be raised due to NullPointerException
Problem is in file DocFINFinAccTransaction.java, line 472
if (!transaction.getForeignCurrency().equals(as.getC_Currency_ID())) {
throws NullPointerException error as transaction.getForeignCurrency() is null.
Comparison should be done as:
if (!as.getC_Currency_ID().equals(transaction.getForeignCurrency())) {
No tags attached.
Issue History
2011-08-26 10:31maiteNew Issue
2011-08-26 10:31maiteAssigned To => jonalegriaesarte
2011-08-26 10:31maiteModules => Advanced Payables and Receivables Mngmt
2011-08-26 10:31maiteOBNetwork customer => Yes
2011-08-26 10:31maiteSupport ticket => 12427
2011-08-26 10:31maiteIssue Monitored: networkb
2011-08-26 10:34maiteAssigned Tojonalegriaesarte => mirurita
2011-08-31 10:41hgbotCheckin
2011-08-31 10:41hgbotNote Added: 0040580
2011-08-31 10:41hgbotStatusnew => resolved
2011-08-31 10:41hgbotResolutionopen => fixed
2011-08-31 10:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/2a1d61ea3efc16999a983a1a32f10c0595256740 [^]
2011-08-31 11:57maiteNote Added: 0040609
2011-08-31 11:57maiteStatusresolved => closed
2011-08-31 11:57maiteFixed in Version => 3.0MP3
2011-08-31 17:20hudsonbotCheckin
2011-08-31 17:20hudsonbotNote Added: 0040636

Notes
(0040580)
hgbot   
2011-08-31 10:41   
Repository: erp/devel/pi
Changeset: 2a1d61ea3efc16999a983a1a32f10c0595256740
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Wed Aug 31 10:34:18 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/2a1d61ea3efc16999a983a1a32f10c0595256740 [^]

Fixed issue 18362.Prevent NPE error.

---
M src/org/openbravo/erpCommon/ad_forms/DocFINFinAccTransaction.java
---
(0040609)
maite   
2011-08-31 11:57   
verified
(0040636)
hudsonbot   
2011-08-31 17:20   
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/f184d98cb917 [^]

Maturity status: Test