Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028266
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] 04. Warehouse managementminorhave not tried2014-11-24 17:502014-12-30 23:26
ReporteraferrazView Statuspublic 
Assigned ToSandrahuguet 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision51adc29c2514
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionProfessional ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned Toaferraz
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028266: [Costing] "Parent Cost Adjustment Line" field in Cost Adjustment Line should always be assigned in the same order

Description"Parent Cost Adjustment Line" field in Cost Adjustment Line should always be assigned in the same order
Steps To ReproduceIn "QA Testing" client:

Create a new Product named "Costing LC101" for Spain organization, "Purchase" price list and a unit/list price of 150 €.
Create a new Product named "Costing LC201" for Spain organization, "Purchase" price list and a unit/list price of 185 €.

Go to Goods Receipt window and create a new receipt dated on 30-11-2014. Create a new line with product "Costing LC101" and quantity 100 units. Create another line with product "Costing LC201" and quantity 200 units. Complete. Let's say this is receipt 10001795. Navigate to Process Request window and run "Costing Background process". Go to receipt window and post the receipt 10001795.

Go to Landed Cost window and create a new landed cost for Spain organization, reference date 30-11-2014. Move to Cost tab and add a new line with landed cost type Fees and amount 535 EUR. Add another line with landed cost type Transportation Cost and amount 105 EUR. Add another line with landed cost type USD Cost and amount 20 USD. Move to Receipt tab and add a new line with goods receipt 10001795. Click on Process button.

Navigate to Cost Adjustment window and select the last created record. Move to Line tab and realize that there are 4 records:

- Line 1: Adjustment Amount: 5.77 - Transaction: Receipt 10001795 line 10 - Parent Cost Adjustment Line: null

- Line 2: Adjustment Amount: 14.23 - Transaction: Receipt 10001795 line 20 - Parent Cost Adjustment Line: null

- Line 3: Adjustment Amount: 184.62 - Transaction: Receipt 10001795 line 10 - Parent Cost Adjustment Line: Cost Adjustment Line 10

- Line 4: Adjustment Amount: 455.38 - Transaction: Receipt 10001795 line 20 - Parent Cost Adjustment Line: Cost Adjustment Line 20

The field "Parent Cost Adjustment Line" should always have these values in this order, but it has not.
Proposed SolutionThe query which assigns the "Parent Cost Adjustment Line" field in Cost Adjustment Line, should have an orderBy clause to assign the field in the same order which related inventory transaction was created (this is well done), and another orderBy clause to assign the field ordering the lines by amount (asc) if the transaction date is the same.
TagsNo tags attached.
Attached Filespng file icon 1.png [^] (43,967 bytes) 2014-11-24 17:54


png file icon 2.png [^] (44,111 bytes) 2014-11-24 17:54

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0028148 closedumartirena Cost Adjustment Lines of type Landed Cost should always be created in the same order 

-  Notes
(0072292)
hgbot (developer)
2014-12-04 20:51

Repository: erp/devel/pi
Changeset: 51adc29c2514d9f39a0f43b4fde23b65b64778af
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Dec 01 16:54:02 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/51adc29c2514d9f39a0f43b4fde23b65b64778af [^]

Fixes bug 28266 ParentCostAdjustmentLine should always be assigned in the same order

In order to help JUnit tests assert Cost Adjustment lines, an orderBy clause has been added when assigning the field "Parent Cost Adjustment Line" to follow always the same order

---
M src/org/openbravo/costing/CostAdjustmentProcess.java
---
(0073178)
hudsonbot (developer)
2014-12-30 23:26

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/6525fe229e06 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2014-11-24 17:50 aferraz New Issue
2014-11-24 17:50 aferraz Assigned To => Sandrahuguet
2014-11-24 17:50 aferraz Modules => Core
2014-11-24 17:50 aferraz Triggers an Emergency Pack => No
2014-11-24 17:54 aferraz File Added: 1.png
2014-11-24 17:54 aferraz File Added: 2.png
2014-11-24 17:55 aferraz Relationship added related to 0028148
2014-12-04 20:51 hgbot Checkin
2014-12-04 20:51 hgbot Note Added: 0072292
2014-12-04 20:51 hgbot Status new => resolved
2014-12-04 20:51 hgbot Resolution open => fixed
2014-12-04 20:51 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/51adc29c2514d9f39a0f43b4fde23b65b64778af [^]
2014-12-04 20:54 aferraz Review Assigned To => aferraz
2014-12-04 20:54 aferraz Status resolved => closed
2014-12-30 23:26 hudsonbot Checkin
2014-12-30 23:26 hudsonbot Note Added: 0073178


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker