Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034019Openbravo ERP03. Procurement managementpublic2016-09-19 15:402016-09-19 21:28
lorenzofidalgo 
markmm82 
immediatemajoralways
closedfixed 
5
pi 
3.0PR16Q3.23.0PR16Q3.2 
aferraz
Google Chrome, Mozilla Firefox
Core
Pre packaging ( pi )
pi
No
0034019: 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.
blocks defect 0034018 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 
Issue History
2016-09-19 16:00aferrazTypedefect => backport
2016-09-19 16:00aferrazTarget Version => 3.0PR16Q3.2
2016-09-19 21:27hgbotCheckin
2016-09-19 21:27hgbotNote Added: 0090083
2016-09-19 21:27hgbotStatusscheduled => resolved
2016-09-19 21:27hgbotResolutionopen => fixed
2016-09-19 21:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q3.2/rev/72658824871766a8bacb704335f292600cca4957 [^]
2016-09-19 21:28aferrazReview Assigned To => aferraz
2016-09-19 21:28aferrazNote Added: 0090085
2016-09-19 21:28aferrazStatusresolved => closed
2016-09-19 21:28aferrazFixed in Version => 3.0PR16Q3.2

Notes
(0090083)
hgbot   
2016-09-19 21:27   
Repository: erp/backports/3.0PR16Q3.2
Changeset: 72658824871766a8bacb704335f292600cca4957
Author: Mark <markmm82 <at> gmail.com>
Date: Mon Sep 19 11:33:17 2016 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR16Q3.2/rev/72658824871766a8bacb704335f292600cca4957 [^]

Fixes issue 34019: 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
---
(0090085)
aferraz   
2016-09-19 21:28   
Code review + Testing OK