Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033407Openbravo ERP04. Warehouse managementpublic2016-06-30 13:452016-07-01 14:30
VictorVillar 
dmiguelez 
immediatecriticalalways
closedfixed 
5
pi 
3.0PR16Q33.0PR16Q3 
aferraz
Core
No
0033407: Not possible to launch the costing background process because manual costing registers
Not possible to launch the costing background process because manual costing registers
Not possible to launch the costing background process because manual costing registers

it seems that this statement costing.getInventoryTransaction().XXX fails.

Example:

1) line 407 CostingUtils.java

2) different lines in CostAdjustmentUtils.java

if (costing != null
        && costing.getTotalMovementQuantity() != null
        && (!costingRule.isBackdatedTransactionsFixed() || trx.getMovementDate().after(
            costing.getInventoryTransaction().getMovementDate()))) {

No tags attached.
blocks defect 00333913.0PR16Q4 closed dmiguelez Not possible to launch the costing background process because manual costing registers 
Issue History
2016-07-01 12:01aferrazTypedefect => backport
2016-07-01 12:01aferrazTarget Version => 3.0PR16Q3
2016-07-01 14:28hgbotCheckin
2016-07-01 14:28hgbotNote Added: 0088155
2016-07-01 14:28hgbotStatusscheduled => resolved
2016-07-01 14:28hgbotResolutionopen => fixed
2016-07-01 14:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q3/rev/f2a3f94930f2e3a80338e463446cffe8919c0156 [^]
2016-07-01 14:30aferrazReview Assigned To => aferraz
2016-07-01 14:30aferrazNote Added: 0088157
2016-07-01 14:30aferrazStatusresolved => closed
2016-07-01 14:30aferrazFixed in Version => 3.0PR16Q3

Notes
(0088155)
hgbot   
2016-07-01 14:28   
Repository: erp/backports/3.0PR16Q3
Changeset: f2a3f94930f2e3a80338e463446cffe8919c0156
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Jul 01 09:51:44 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q3/rev/f2a3f94930f2e3a80338e463446cffe8919c0156 [^]

Fixes issue 33407: Error in Costing Background due to manual costing records

Do not take into account manually inserted Costing Entries when calculating the current Stock or the current valued Stock.
Also, centralize conditions into one boolean variable.

---
M src/org/openbravo/costing/CostAdjustmentUtils.java
M src/org/openbravo/costing/CostingUtils.java
---
(0088157)
aferraz   
2016-07-01 14:30   
Code review + Testing OK