Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034020Openbravo ERP03. Procurement managementpublic2016-09-19 15:402016-09-19 21:30
lorenzofidalgo 
markmm82 
immediatemajoralways
closedfixed 
5
pi 
3.0PR16Q2.33.0PR16Q2.3 
aferraz
Google Chrome, Mozilla Firefox
Core
Pre packaging ( pi )
pi
No
0034020: 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.0PR16Q2.3
2016-09-19 21:29hgbotCheckin
2016-09-19 21:29hgbotNote Added: 0090086
2016-09-19 21:29hgbotStatusscheduled => resolved
2016-09-19 21:29hgbotResolutionopen => fixed
2016-09-19 21:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q2.3/rev/1ac14eb96650005b6cb992bb8ce710b1acc6f181 [^]
2016-09-19 21:29hgbotCheckin
2016-09-19 21:29hgbotNote Added: 0090087
2016-09-19 21:30aferrazReview Assigned To => aferraz
2016-09-19 21:30aferrazNote Added: 0090088
2016-09-19 21:30aferrazStatusresolved => closed
2016-09-19 21:30aferrazFixed in Version => 3.0PR16Q2.3

Notes
(0090086)
hgbot   
2016-09-19 21:29   
Repository: erp/backports/3.0PR16Q2.3
Changeset: 1ac14eb96650005b6cb992bb8ce710b1acc6f181
Author: Mark <markmm82 <at> gmail.com>
Date: Mon Sep 19 11:33:17 2016 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR16Q2.3/rev/1ac14eb96650005b6cb992bb8ce710b1acc6f181 [^]

Fixes issue 34020: 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
---
(0090087)
hgbot   
2016-09-19 21:29   
Repository: erp/backports/3.0PR16Q2.3
Changeset: 394c14ba6742e27301ce9b0b8a047213c68e761f
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Sep 19 21:28:47 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q2.3/rev/394c14ba6742e27301ce9b0b8a047213c68e761f [^]

Related to issue 34020: Update copyright

---
M src/org/openbravo/dal/security/OrganizationStructureProvider.java
---
(0090088)
aferraz   
2016-09-19 21:30   
Code review + Testing OK