Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031144Openbravo ERP04. Warehouse managementpublic2015-10-13 18:142015-11-23 21:17
ngarcia 
aferraz 
immediatemajoralways
closedfixed 
5
 
 
dmiguelez
Core
No
0031144: Costing Background Process finishes with error if the costing rule is validated with a starting date in the future
Costing Background Process finishes with error if the costing rule is validated with a starting date in the future and there exists stock in that organization
As group admin role:
   Launch the Initial Organization Setup in order to create a legal with accounting organization below F&B International Group
   Apply the Core dataset
   Create a calendar and a year for that organization
   Assign it to the organization and Set as Ready
   Open its periods
   Create a Business Partner and set it as Vendor
   Create a Product (Item and Stocked)
   Create a Warehouse and a Storage Bin
   Create a goods receipt with today's date for that product, warehouse, business partner... and complete it
   Create a Costing Rule for that organization and set a starting date of tomorrow
   Launch the Costing Background Process and check the following error is shown in the Process Log field:
      No valid Costing Rule found for given organization and date
No tags attached.
related to defect 0031979 closed aferraz Costing Migration Process: processed column of m_transaction table is not set as Y for records with its cost calculated 
Issue History
2015-10-13 18:14ngarciaNew Issue
2015-10-13 18:14ngarciaAssigned To => Triage Finance
2015-10-13 18:14ngarciaModules => Core
2015-10-13 18:14ngarciaResolution time => 1448146800
2015-10-13 18:14ngarciaTriggers an Emergency Pack => No
2015-10-13 18:15ngarciaIssue Monitored: networkb
2015-11-09 12:11aferrazAssigned ToTriage Finance => aferraz
2015-11-09 12:12aferrazStatusnew => scheduled
2015-11-09 13:43aferrazNote Added: 0081621
2015-11-16 18:38hgbotCheckin
2015-11-16 18:38hgbotNote Added: 0081900
2015-11-16 18:38hgbotStatusscheduled => resolved
2015-11-16 18:38hgbotResolutionopen => fixed
2015-11-16 18:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ac6bdbc8cc9c1406b5bd42c6df58a0c50118705a [^]
2015-11-16 18:38dmiguelezReview Assigned To => dmiguelez
2015-11-16 18:38dmiguelezNote Added: 0081901
2015-11-16 18:38dmiguelezStatusresolved => closed
2015-11-23 21:17hudsonbotCheckin
2015-11-23 21:17hudsonbotNote Added: 0082242
2016-01-25 13:06aferrazRelationship addedrelated to 0031979

Notes
(0081621)
aferraz   
2015-11-09 13:43   
Test plan:

As group admin role:
   Launch the Initial Organization Setup in order to create a legal with accounting organization below F&B International Group
   Apply the Core dataset
   Create a calendar and a year for that organization
   Assign it to the organization and Set as Ready
   Open its periods
   Create a Business Partner and set it as Vendor
   Create a Product (Item and Stocked)
   Create a Warehouse and a Storage Bin
   Create a goods receipt with today's date for that product, warehouse, business partner... and complete it
   Create a Costing Rule for that organization and set a starting date of tomorrow
   Launch the Costing Background Process and check it finishes successfully.
(0081900)
hgbot   
2015-11-16 18:38   
Repository: erp/devel/pi
Changeset: ac6bdbc8cc9c1406b5bd42c6df58a0c50118705a
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Nov 09 13:41:23 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ac6bdbc8cc9c1406b5bd42c6df58a0c50118705a [^]

Fixes issue 31144: Error in Costing Background

Costing Background process was failing when first costing rule of an organization was validated with a starting date in the future.
Transactions before this starting date were calculated at zero cost but they were not set as processed, and then Costing Background was wrongly taking those transactions into account to calculate their cost.

---
M src/org/openbravo/costing/CostingRuleProcess.java
---
(0081901)
dmiguelez   
2015-11-16 18:38   
Code Review + Testing Ok
(0082242)
hudsonbot   
2015-11-23 21:17   
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/7b56bebaaa88 [^]
Maturity status: Test