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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0019605
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 04. Warehouse managementmajoralways2012-01-31 17:012012-06-28 12:42
ReportermaiteView Statuspublic 
Assigned Tojecharri 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revision963a92ace977
ProjectionnoneETAnoneTarget Version3.0MP9
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0019605: Generate Average Cost process should take into account goods receipts of same day checked as "permanent"

DescriptionGenerate Average Cost process should take into account goods receipts of same day checked as "permanent"
Steps To Reproduce1. Create Physical Inventory for 31-01-2012, to product "Zumo de Pera Bio 0,33L" at zero stock
2. Create Purchase Order for 31-01-2012, Add line for "Zumo de Pera Bio 0,33L" with 1 unit at prices 1 euro and tax exempt. Process.
3. Create Purchase Order for 31-01-2012, Add line for "Zumo de Pera Bio 0,33L" with 1 unit at prices 2 euro and tax exempt. Process.
4. Go to Pending Goods Receipt form, and create receipt setting date 01/02/2012. Choose both lines with for storage bin RN-0-0-0 and other for RN-1-0-0
5. Run Generate Average Cost process.
6. Go to Costing tab for product "Zumo de Pera Bio 0,33L" and realize that 2 lines have been introduces: one with cost=2 and other with cost=1.5 . This is CORRECT.
7. Edit line Costing line of cost=2 and set as "Permanent"
8. Run Generate Average Cost process.
9. Go to Costing tab for product "Zumo de Pera Bio 0,33L" and realize the permanent line has not changed, but the line with Price 1 now has cost=1 . This is NOT CORRECT. As all receipts from same date should be taken into account when calculating average cost at that day.

[Note: You can also verify that Total Movement Qty for both lines is 1, which implies that receipt's line checked as "permanent" has not been considered]
Proposed SolutionGenerate Average cost process should include ALL receipt's line of specific day, when calculating costing for this day. Also receipt's line checked as Permanent.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 00198612.50MP41 closedjecharri Generate Average Cost process should take into account goods receipts of same day checked as "permanent" 

-  Notes
(0045407)
hgbot (developer)
2012-02-23 13:09

Repository: erp/devel/pi
Changeset: 91dacdd3f33dffa8e3afe1acfb075c0c38b51d0b
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Thu Feb 23 13:08:35 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/91dacdd3f33dffa8e3afe1acfb075c0c38b51d0b [^]

Fixes issue 19605 , Fixes issue 19606:
Generate Average Cost process should take into account goods receipts of same day checked as "permanent" and
Generate Average cost process is not raising unposting error if all costing lines are set as "permanent".
To solve the first problem I have added the permanets quantitites of the day first and to solve the second problem, now I take the min date from M_INOUT

---
M src-db/database/model/functions/M_GENERATE_AVERAGE_COSTS.xml
---
(0045561)
maite (developer)
2012-02-28 18:27

verified
(0045941)
hudsonbot (developer)
2012-03-02 15:39

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/544d64e0c159 [^]

Maturity status: Test
(0050200)
hgbot (developer)
2012-06-27 20:23

Repository: erp/devel/pi
Changeset: 963a92ace9774e82961383a387322680d520ef53
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Thu Feb 23 13:08:35 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/963a92ace9774e82961383a387322680d520ef53 [^]

Fixes issue 19605 , Fixes issue 19606:
Generate Average Cost process should take into account goods receipts of same day checked as "permanent" and
Generate Average cost process is not raising unposting error if all costing lines are set as "permanent".
To solve the first problem I have added the permanets quantitites of the day first and to solve the second problem, now I take the min date from M_INOUT

---
M src-db/database/model/functions/M_GENERATE_AVERAGE_COSTS.xml
---
(0050226)
hudsonbot (developer)
2012-06-28 08:01

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/c66e853c5cf4 [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2012-01-31 17:01 maite New Issue
2012-01-31 17:01 maite Assigned To => jonalegriaesarte
2012-01-31 17:01 maite Modules => Core
2012-01-31 17:01 maite Issue Monitored: networkb
2012-01-31 17:29 maite Steps to Reproduce Updated View Revisions
2012-02-15 13:22 jonalegriaesarte Assigned To jonalegriaesarte => jecharri
2012-02-23 13:09 hgbot Checkin
2012-02-23 13:09 hgbot Note Added: 0045407
2012-02-23 13:09 hgbot Status new => resolved
2012-02-23 13:09 hgbot Resolution open => fixed
2012-02-23 13:09 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/91dacdd3f33dffa8e3afe1acfb075c0c38b51d0b [^]
2012-02-24 09:07 jecharri Status resolved => new
2012-02-24 09:07 jecharri Resolution fixed => open
2012-02-24 09:07 jecharri Status new => scheduled
2012-02-24 09:07 jecharri fix_in_branch => pi
2012-02-24 09:07 jecharri Status scheduled => resolved
2012-02-24 09:07 jecharri Resolution open => fixed
2012-02-28 18:27 maite Note Added: 0045561
2012-02-28 18:27 maite Status resolved => closed
2012-03-02 15:39 hudsonbot Checkin
2012-03-02 15:39 hudsonbot Note Added: 0045941
2012-06-27 20:23 hgbot Checkin
2012-06-27 20:23 hgbot Note Added: 0050200
2012-06-27 20:23 hgbot Status closed => resolved
2012-06-27 20:23 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/91dacdd3f33dffa8e3afe1acfb075c0c38b51d0b [^] => http://code.openbravo.com/erp/devel/pi/rev/963a92ace9774e82961383a387322680d520ef53 [^]
2012-06-28 08:01 hudsonbot Checkin
2012-06-28 08:01 hudsonbot Note Added: 0050226
2012-06-28 12:33 jecharri Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker