Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010690Openbravo ERP08. Project and service managementpublic2009-09-22 11:562011-01-12 12:34
rafaroda 
adrianromero 
highmajoralways
closedfixed 
20rPath Linux
pi 
 
Core
No
0010690: Expense Report and Project Profitability Reports display hours even if time sheet lines are in days
Expense Report and Project Profitability Reports are displaying hours even if the time sheet line has been reported in days.

Take into account that the cost associated to the hours is defined per hours in Master Data Management || Business Partner Setup || Salary Category || Salary Category >> Cost
1) Define a new Salary Category: Consultant
2) Assign it a Cost of:
* Cost = 60
* Cost UOM = per Hour
* Starting Date = 01-01-2000
3) Select an Employee and assign it the previous Salary category from Starting Date = 01-01-2007 (Master Data Management || Business Partner || Business Partner >> Employee >> Salary category)
4) Create a new product:
* Name = Consultancy
* UOM = Day
* Product Type = Service
5) In UOM tab create a record for UOM = Hour
6) Create a conversion between Hours and Days in Master Data Management || Product Setup || Unit of Measure
* Select Day and in Conversion tab add:
** To UOM = Hour
** Multiply Rate by = 8
* Select Hour and in Conversion tab add:
** To UOM = Day
** Divide Rate by = 8
7) Create a new Service Project:
* Name = My Project
* Business Partner = Millman
8) Create an Expense Sheet for the previous employee in step 3 (Project & Service Management || Transactions || Expense Sheet || Header)
9) Add a new time sheet line for reporting 3 consultancy days in project My Project:
* Time Sheet = Y
* Product = Consultancy (UOM is changed to Day)
* Quantity = 3
* Project = My Project
10) Go back to expense sheet header and Process it.
11) Report project profitability selecting My Project (Project & Service Management || Analysis Tools || Project Profitability)
* Real Cost = 60 €/hour x 3 Days = 180 €xDays/hour when it should be Real Cost = 60 €/hour x 3 Days x 8 hours/day = 1140 €
12) Report expenses selecting My Project (Project & Service Management || Analysis Tools || Expense Report)
* Employee hours = 3 (180,00) when it should be 3 Days x 8 hours/day (3 Days x 8 hours/day x 60 €/hour) = 24 hours (1140 €)
* Product hours = 3 (180,00) when it should be 3 Days x 8 hours/day (3 Days x 8 hours/day x 60 €/hour) = 24 hours (1140 €)
1) In Project & Service Management || Transactions || Expense Sheet || Header >> Lines make UOM field read-only since secondary UOM is not supported there (see feature request 0010689).
2) Time (expense) sheet lines are always reported with the product UOM (days, weeks, ...).
3) Project profitability and expense reports require hours:
* if there is not a conversion between the reported time UOM and hours, when executing those reports an error message is displayed informing that there should be an UOM conversion defined from the UOM to hours.
No tags attached.
related to feature request 0010689 new rmorley Expense Sheet Lines do not support secondary UOM 
related to backport 00156312.50MP26 closed adrianromero Project profitability report is not working under some circumstances 
related to defect 00156302.50MP26 closed adrianromero Project profitability report is not working under some circumstances 
Issue History
2009-09-22 11:56rafarodaNew Issue
2009-09-22 11:56rafarodaAssigned To => rafaroda
2009-09-22 12:00rafarodaRelationship addedrelated to 0010689
2009-09-29 22:59psarobeStatusnew => scheduled
2009-09-29 22:59psarobefix_in_branch => pi
2010-02-11 18:05rafarodaAssigned Torafaroda => adrianromero
2010-08-24 22:50fgredruelloIssue Monitored: fgredruello
2010-10-25 12:41harikrishnanAssigned Toadrianromero => harikrishnan
2010-10-26 09:37hgbotCheckin
2010-10-26 09:37hgbotNote Added: 0032206
2010-10-26 09:37hgbotStatusscheduled => resolved
2010-10-26 09:37hgbotResolutionopen => fixed
2010-10-26 09:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0f75f9ed2c728784e29852401f4d11f7b256d393 [^]
2010-10-26 09:38harikrishnanNote Added: 0032207
2010-10-26 16:25hgbotCheckin
2010-10-26 16:25hgbotNote Added: 0032227
2010-10-26 16:25hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/0f75f9ed2c728784e29852401f4d11f7b256d393 [^] => http://code.openbravo.com/erp/devel/pi/rev/21ce762194211fdbf531a0ca5b6ae5c3a59d13f0 [^]
2010-11-05 12:44hudsonbotCheckin
2010-11-05 12:44hudsonbotNote Added: 0032414
2010-11-05 12:44hudsonbotCheckin
2010-11-05 12:44hudsonbotNote Added: 0032418
2010-12-27 12:22psarobeStatusresolved => closed
2010-12-28 00:00anonymoussf_bug_id0 => 3146614
2011-01-12 09:51psarobeAssigned Toharikrishnan => adrianromero
2011-01-12 09:51psarobeStatusclosed => new
2011-01-12 09:51psarobeResolutionfixed => open
2011-01-12 12:33psarobeStatusnew => scheduled
2011-01-12 12:34psarobeStatusscheduled => resolved
2011-01-12 12:34psarobeResolutionopen => fixed
2011-01-12 12:34psarobeStatusresolved => closed
2011-01-13 18:31adrianromeroRelationship addedrelated to 0015631
2011-01-13 18:33adrianromeroRelationship addedrelated to 0015630

Notes
(0032206)
hgbot   
2010-10-26 09:37   
Repository: erp/devel/pi
Changeset: 0f75f9ed2c728784e29852401f4d11f7b256d393
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Tue Oct 26 13:06:52 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/0f75f9ed2c728784e29852401f4d11f7b256d393 [^]

Fixes Issue 10690: Expense Report and Project Profitability Reports display hours even if time sheet lines are in days

---
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_reports/ReportExpense.java
M src/org/openbravo/erpCommon/ad_reports/ReportExpense_data.xsql
M src/org/openbravo/erpCommon/ad_reports/ReportProjectProfitabilityJR.java
M src/org/openbravo/erpCommon/ad_reports/ReportProjectProfitability_data.xsql
---
(0032207)
harikrishnan   
2010-10-26 09:38   
Steps to test:

*Follow the steps to test.

Root Cause:

*Before the days are not properly converted in to the hours UOM.Since these two fields deals with the hours,so we need hours UOM to the output.If this conversion rate is not defined then we have to throw a error.

Impact:

Only it ll affect these two reports.They are tested well.
(0032227)
hgbot   
2010-10-26 16:25   
Repository: erp/devel/pi
Changeset: 21ce762194211fdbf531a0ca5b6ae5c3a59d13f0
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Tue Oct 26 16:24:46 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/21ce762194211fdbf531a0ca5b6ae5c3a59d13f0 [^]

Fixes Issue 10690: Expense Report and Project Profitability Reports display hours even if time sheet lines are in days
Fixed typo

---
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0032414)
hudsonbot   
2010-11-05 12:44   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/0f75f9ed2c72 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/f2cf138fa03c [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18797.obx [^]
(0032418)
hudsonbot   
2010-11-05 12:44   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/21ce76219421 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/f2cf138fa03c [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18797.obx [^]