Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030569Openbravo ERP04. Warehouse managementpublic2015-08-13 11:332016-08-31 17:12
aferraz 
rqueralta 
normalmajoralways
newopen 
30Professional Appliance
 
 
Core
No
0030569: Wrong Negative Stock Correction after validating a new Costing Rule
Wrong Negative Stock Correction cost adjustments with amount = 0 are created after validate a new Costing Rule and run Costing Background process.
As System Admin:

- Set costing precision to 4 for EUR currency in Currency window.
- Set costing precision to 4 for USD currency in Currency window.

As QA Admin:

- Set currency to EUR for Spain organization in Organization window.
- Set allow negatives to false for Main US/A/Euro accounting schema in General Ledger Configuration window.

- Go to Process Request window and run Costing Background process.

- Create a new Costing Rule for Spain organization, Average Algorithm costing algorithm, warehouse dimension = true and backdated transactions fixed = true. Validate it.

Now we execute Costing JJ test case:

- Create a new Product named testCostingJJ.
  Add Purchase Price of 95.
  Add Sales Price of 95.
  Add Standard Costing of 100 with 01-01-2009 starting date, 31-12-9999 ending date and Spain warehouse warehouse.

- Create a Goods Receipt for Vendor A, Spain warehouse, date = today, testCostingJJ product, 1.500 quantity and L01 storage bin.
  Complete it.
  Go to Process Request window and run Costing Background process.

- Create a Goods Shipment for Customer A, Spain warehouse, date = today + 10 days, testCostingJJ product, 500 quantity and L01 storage bin.
  Complete it.
  Go to Process Request window and run Costing Background process.

- Create a Purchase Invoice for Vendor A and date = today + 5 days.
  Click on Create Lines From and select previous created receipt.
  Change price to 195.
  Complete it.

- Go to Process Request window and run Price Correction Background.

- Go to Cost Adjustment and check a new Price Difference Correction adjustment has been created with two lines:
  Line 1: Intentory Transaction: created receipt, Adjustment amount: 150.000
  Line 2: Intentory Transaction: created shipment, Adjustment amount: 50.000

Costing JJ test case execution is correct.

- Create a new Costing Rule for Spain organization, Average Algorithm costing algorithm, warehouse dimension = true and backdated transactions fixed = true. Validate it.

- Go to Process Request window and run Costing Background process.

- Go to Cost Adjustment and check a new Negative Stock Correction adjustment has been created with one line:
  Line 1: Intentory Transaction: created receipt, Adjustment amount: 0

This Negative Stock Correction adjustment is not correct.
No tags attached.
Issue History
2015-08-13 11:33aferrazNew Issue
2015-08-13 11:33aferrazAssigned To => Triage Finance
2015-08-13 11:33aferrazModules => Core
2015-08-13 11:33aferrazTriggers an Emergency Pack => No
2015-08-26 14:01psanjuanNote Added: 0079756
2016-08-31 17:12rqueraltaAssigned ToTriage Finance => rqueralta

Notes
(0079756)
psanjuan   
2015-08-26 14:01   
Verified.
A negative stock correction adjustment with a 0.00 amount is created due to the creation of the new costing rule.
This adjustment is created in the Inventory In line related to the Opening Inventory.
It is not needed, it is not correct.