Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038867Openbravo ERP04. Warehouse managementpublic2018-06-29 10:462019-04-04 09:51
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
3.0PR18Q4 
dmiguelez
Core
No
0038867: Cannot process a Landed Cost if the role does not have access to the organization of a transaction that needs to be adjusted
Cannot process a Landed Cost if the role does not have access to the organization of a transaction that needs to be adjusted
As group admin role:
   Create a Goods Receipt for two days before today and F&B España, S.A.
   Select Region Sur Warehouse
   Add a product and complete it

   Create a Goods Receipt for yesterday and F&B España - Region Sur
   Add the same product and complete it

   Launch Costing Background Process and check their cost is calculated

   Remove the access to F&B España - Region Sur to the role you are logged in with
   Log out and log in

   Create a Landed Cost Type
   Create a Landed Cost
   Set a Cost to it
   Select the previously created receipt
   Try to complete it and check the following error message is shown:

Organization <> of object (TransactionCost(<>) (inventoryTransaction: <>, cost: <>, costDate: <>)) is not present in OrganizationList [<>]
   
No tags attached.
related to defect 0040516 closed nonofrancisco Cannot process a Landed Cost if the role does not have access to its Legal Entity 
Issue History
2018-06-29 10:46ngarciaNew Issue
2018-06-29 10:46ngarciaAssigned To => Triage Finance
2018-06-29 10:46ngarciaModules => Core
2018-06-29 10:46ngarciaResolution time => 1532037600
2018-06-29 10:46ngarciaTriggers an Emergency Pack => No
2018-06-29 10:46ngarciaIssue Monitored: networkb
2018-07-02 15:55SandrahuguetAssigned ToTriage Finance => AtulOpenbravo
2018-07-16 09:14AtulOpenbravoStatusnew => scheduled
2018-07-16 09:14AtulOpenbravoNote Added: 0105745
2018-07-25 11:16AtulOpenbravoNote Edited: 0105745bug_revision_view_page.php?bugnote_id=0105745#r17454
2018-07-25 12:29dmiguelezNote Edited: 0105745bug_revision_view_page.php?bugnote_id=0105745#r17458
2018-07-25 12:29hgbotCheckin
2018-07-25 12:29hgbotNote Added: 0105944
2018-07-25 12:29hgbotStatusscheduled => resolved
2018-07-25 12:29hgbotResolutionopen => fixed
2018-07-25 12:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7bdc07f521333b03aa76b3ae761d05ab24239e4b [^]
2018-07-25 12:30dmiguelezReview Assigned To => dmiguelez
2018-07-25 12:30dmiguelezNote Added: 0105945
2018-07-25 12:30dmiguelezStatusresolved => closed
2018-07-25 12:30dmiguelezFixed in Version => 3.0PR18Q4
2018-08-08 13:06hudsonbotCheckin
2018-08-08 13:06hudsonbotNote Added: 0106230
2019-04-04 09:51gorkaionIssue cloned0040516
2019-04-04 09:51gorkaionRelationship addedrelated to 0040516

Notes
(0105745)
AtulOpenbravo   
2018-07-16 09:14   
(edited on: 2018-07-25 12:29)
Test Plan

- F&B International Group admin role:-
- Create a Goods Receipt for two days before today and F&B España, S.A.
   Select Region Sur Warehouse.
   Add a product and complete it.
- Create a Goods Receipt for yesterday and F&B España - Region Sur.
   Add the same product and complete it.
- Launch Costing Background Process and check their cost is calculated
- Remove the access to F&B España - Region Sur to the role you are logged in with.
- Log out and log in
- Create a Landed Cost Type.
- Create a Landed Cost.
- Set a Cost to it.
- In Receipt Tab, select previously created receipt and process the Landed Cost. It is completed successfully.

(0105944)
hgbot   
2018-07-25 12:29   
Repository: erp/devel/pi
Changeset: 7bdc07f521333b03aa76b3ae761d05ab24239e4b
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Jul 16 12:38:57 2018 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/7bdc07f521333b03aa76b3ae761d05ab24239e4b [^]

Fixes Issue 0038867:Cannot process a Landed Cost if the role does not have
access to the organization of a transaction that needs to be adjusted

In method generateTransactionCosts of Cost Adjustment Process,
use Admin mode with client org check flag as false.

---
M src/org/openbravo/costing/CostAdjustmentProcess.java
---
(0105945)
dmiguelez   
2018-07-25 12:30   
Code Review + Testing Ok
(0106230)
hudsonbot   
2018-08-08 13: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/bfd7a414183a [^]
Maturity status: Test