Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034018Openbravo ERP03. Procurement managementpublic2016-09-19 15:402016-09-20 02:11
lorenzofidalgo 
markmm82 
immediatemajoralways
closedfixed 
5
pi 
3.0PR16Q4 
aferraz
Google Chrome, Mozilla Firefox
Core
Packaging and release
2016-09-16
pi
https://code.openbravo.com/erp/devel/pi/rev/df9155c88ab2 [^]
No
0034018: Posting a Purchase Invoice is not possible with "F&B España, S.A. - Finanace - F&B International Group" role. NPE is thrown
Trying to post a Purchase Invoice an error message is thrown with the following message: "java.lang.NullPointerException".
I have been able to reproduce this issue in pi but not in main.
0-Login POS as Openbravo and using F&B España, S.A. - Finanace - F&B International Group role, go to "Purchase Invoice" window.
1-Click "Create a new record in form" button and choose "Bebidas Alegres, S.L." as "Business Partner".
2-Go to "Lines" tab and create a new record. Select "Cerveza Ale 0,5L" in "Product" field.
3-Save and Complete that record.
4-Now, try to Post that record. DEFECT: An error message with the following message will appear: "java.lang.NullPointerException".(check attached image).
No tags attached.
depends on backport 00340193.0PR16Q3.2 closed markmm82 Posting a Purchase Invoice is not possible with "F&B España, S.A. - Finanace - F&B International Group" role. NPE is thrown 
depends on backport 00340203.0PR16Q2.3 closed markmm82 Posting a Purchase Invoice is not possible with "F&B España, S.A. - Finanace - F&B International Group" role. NPE is thrown 
caused by design defect 0024191 closed dmiguelez Accounting background process has bad performance 
png NPEPostingAPurchaseInvoice.png (125,289) 2016-09-19 15:40
https://issues.openbravo.com/file_download.php?file_id=9835&type=bug
png
Issue History
2016-09-19 15:40lorenzofidalgoNew Issue
2016-09-19 15:40lorenzofidalgoAssigned To => Triage Finance
2016-09-19 15:40lorenzofidalgoFile Added: NPEPostingAPurchaseInvoice.png
2016-09-19 15:40lorenzofidalgoWeb browser => Google Chrome, Mozilla Firefox
2016-09-19 15:40lorenzofidalgoModules => Core
2016-09-19 15:40lorenzofidalgoRegression level => Pre packaging ( pi )
2016-09-19 15:40lorenzofidalgoRegression introduced in release => pi
2016-09-19 15:40lorenzofidalgoTriggers an Emergency Pack => No
2016-09-19 15:41lorenzofidalgoWeb browserGoogle Chrome, Mozilla Firefox => Google Chrome, Mozilla Firefox
2016-09-19 15:41lorenzofidalgoSummaryPosting a Purchase Invoice is not possible. NPE is thrown => Posting a Purchase Invoice is not possible with "F&B España, S.A. - Finanace - F&B International Group" role. NPE is thrown
2016-09-19 16:00aferrazRelationship addedcaused by 0024191
2016-09-19 16:00aferrazAssigned ToTriage Finance => markmm82
2016-09-19 16:00aferrazStatusnew => scheduled
2016-09-19 16:05aferrazWeb browserGoogle Chrome, Mozilla Firefox => Google Chrome, Mozilla Firefox
2016-09-19 16:05aferrazRegression levelPre packaging ( pi ) => Packaging and release
2016-09-19 16:05aferrazRegression date => 2016-09-16
2016-09-19 16:05aferrazRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/df9155c88ab2 [^]
2016-09-19 21:20hgbotCheckin
2016-09-19 21:20hgbotNote Added: 0090082
2016-09-19 21:20hgbotStatusscheduled => resolved
2016-09-19 21:20hgbotResolutionopen => fixed
2016-09-19 21:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9388451efb9743b62a9df24513fb5ae91dbed888 [^]
2016-09-19 21:27aferrazReview Assigned To => aferraz
2016-09-19 21:27aferrazNote Added: 0090084
2016-09-19 21:27aferrazStatusresolved => closed
2016-09-19 21:27aferrazFixed in Version => 3.0PR16Q4
2016-09-20 02:11hudsonbotCheckin
2016-09-20 02:11hudsonbotNote Added: 0090097

Notes
(0090082)
hgbot   
2016-09-19 21:20   
Repository: erp/devel/pi
Changeset: 9388451efb9743b62a9df24513fb5ae91dbed888
Author: Mark <markmm82 <at> gmail.com>
Date: Mon Sep 19 11:33:17 2016 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/9388451efb9743b62a9df24513fb5ae91dbed888 [^]

Fixes issue 34018: Is possible posting a Purchase Invoice with Finance role

Modified the OrganizationStructureProvider.getPeriodControlAllowedOrganization() method to execute in Admin mode.

---
M src/org/openbravo/dal/security/OrganizationStructureProvider.java
---
(0090084)
aferraz   
2016-09-19 21:27   
Code review + Testing OK
(0090097)
hudsonbot   
2016-09-20 02:11   
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/3f07553793a6 [^]
Maturity status: Test