Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031348Openbravo ERP04. Warehouse managementpublic2015-11-03 19:312015-11-04 13:16
aferraz 
aferraz 
immediatecriticalalways
closedfixed 
30Professional Appliance
 
3.0PR15Q4 
dmiguelez
Core
Packaging and release
2015-09-01
main
https://code.openbravo.com/erp/devel/pi/rev/d824566905ac [^]
No
0031348: Error when validating a Costing Rule with "Backdated Transactions Fixed" flag enabled
Error when validating a Costing Rule with "Backdated Transactions Fixed" flag enabled and a backdated adjustment needs to be created.
As F&B Admin:

- Create a Purchase Order for any product. Book it.
  Create a Goods Receipt from order and dated 10 days after today. Complete it.
  Run Costing Background process.

- Go to Costing Rule window and create a new one for España and Average algorithm, with warehouse dimension flag disabled and backdated transactions fixed flag enabled.
  Click on Validate Costing Rule.
  Run Costing Background process.

- Create another Costing Rule for España and Average algorithm, with warehouse dimension flag disabled and backdated transactions fixed flag enabled.
  Click on Validate Costing Rule.

Check an Error is shown: could not initialize proxy - no Session.
Check also in the log the following error is raised: @NoCostingRuleFoundForOrganizationAndDate@
Check if closing inventories created by a Costing Rule should create BDT adjustments.
If that case, check getCostDimensionRule method of CostingUtils.java
In any case, check also getCostDimensionRule method of CostingServer.java
No tags attached.
blocks defect 00313473.0PR16Q1 closed aferraz Error when validating a Costing Rule with "Backdated Transactions Fixed" flag enabled 
Issue History
2015-11-03 21:26aferrazTypedefect => backport
2015-11-03 21:26aferrazTarget Version3.0PR16Q1 => 3.0PR15Q4
2015-11-04 13:15hgbotCheckin
2015-11-04 13:15hgbotNote Added: 0081472
2015-11-04 13:15hgbotStatusscheduled => resolved
2015-11-04 13:15hgbotResolutionopen => fixed
2015-11-04 13:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q4/rev/5dc29d94caf5aa66017df9b98f7ffd37a4b512a7 [^]
2015-11-04 13:16dmiguelezReview Assigned To => dmiguelez
2015-11-04 13:16dmiguelezNote Added: 0081473
2015-11-04 13:16dmiguelezStatusresolved => closed

Notes
(0081472)
hgbot   
2015-11-04 13:15   
Repository: erp/backports/3.0PR15Q4
Changeset: 5dc29d94caf5aa66017df9b98f7ffd37a4b512a7
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Nov 03 21:18:14 2015 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR15Q4/rev/5dc29d94caf5aa66017df9b98f7ffd37a4b512a7 [^]

Fixes issue 31348: Error when validating a Costing Rule with backdated enabled

When checking for the current validated costing rule, it should have an ending date greater or equal than current date.

---
M src/org/openbravo/costing/CostingServer.java
M src/org/openbravo/costing/CostingUtils.java
---
(0081473)
dmiguelez   
2015-11-04 13:16   
Code Review + Testing Ok