Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033957Openbravo ERP04. Warehouse managementpublic2016-09-09 11:172016-09-13 18:57
ngarcia 
markmm82 
immediatemajoralways
closedfixed 
5
 
3.0PR16Q3.23.0PR16Q3.2 
aferraz
Core
Production - Confirmed Stable
2016-02-09
3.0PR16Q2
https://code.openbravo.com/erp/devel/pi/rev/4e9e547d8199 [^]
No
0033957: Error in Costing Background Process if first costing rule validated with starting date,previous transactions cost not calculated
Error in Costing Background Process if first costing rule is validated by setting a starting date, the cost of all previous transactions is not set as calculated. The trxprocessdate of the opening inventory is wrong (the time is updated to 0:00:00)
As group admin role:
   1. Create the following master data:
      Legal with accounting organization (set its currency)
      Fiscal calendar, year and periods
      Business Partner (set it as vendor and set a location)
      Tax Category
      Product (set it as Item as Stocked)
      Warehouse and storage bin
   2. Allow period control and assign the fiscal calendar to the organization
      Set it as ready
      Open the periods
   3. Create a goods receipt with the previously created master data and complete it
   4. Validate a costing rule with average algorithm and a starting date (now)
   5. Go to Product - Transaction tab and check the transaction process date of the opening inventory is previous the transaction process date of the closing inventory. This is wrong
   6. Check also the cost of the Goods Receipt is not calculated and it should be 0
   7. Schedule the Costing Background process and check the following error message is shown:
      No valid Costing Rule found for given organization and date.
No tags attached.
blocks defect 0033937 closed markmm82 Error in Costing Background Process if first costing rule validated with starting date,previous transactions cost not calculated 
Issue History
2016-09-12 18:57aferrazTypedefect => backport
2016-09-12 18:57aferrazTarget Version => 3.0PR16Q3.2
2016-09-13 18:55hgbotCheckin
2016-09-13 18:55hgbotNote Added: 0089931
2016-09-13 18:55hgbotStatusscheduled => resolved
2016-09-13 18:55hgbotResolutionopen => fixed
2016-09-13 18:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q3.2/rev/ca7ed1e124ed764538da214ddee2033dd8888e7e [^]
2016-09-13 18:57aferrazReview Assigned To => aferraz
2016-09-13 18:57aferrazNote Added: 0089934
2016-09-13 18:57aferrazStatusresolved => closed
2016-09-13 18:57aferrazFixed in Version => 3.0PR16Q3.2

Notes
(0089931)
hgbot   
2016-09-13 18:55   
Repository: erp/backports/3.0PR16Q3.2
Changeset: ca7ed1e124ed764538da214ddee2033dd8888e7e
Author: Mark <markmm82 <at> gmail.com>
Date: Mon Sep 12 15:06:46 2016 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR16Q3.2/rev/ca7ed1e124ed764538da214ddee2033dd8888e7e [^]

Fixes issue 33957: Fixed trx date of inventory in Costing Background Process

Used the setTimestamp method instead of the setDate, by this way the details like the hours, minutes and seconds of the transactions are not lost.

---
M src/org/openbravo/costing/CostingRuleProcess.java
---
(0089934)
aferraz   
2016-09-13 18:57   
Code review + Testing OK