Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010431Openbravo ERP08. Project and service managementpublic2009-08-28 22:002010-03-10 18:28
elopio 
rafaroda 
urgentmajoralways
closedfixed 
20Ubuntu 9.04
pi 
pi 
Core
No
0010431: UOM is not properly updated in expense sheet lines.
When selecting a product with UOM in hours, the combobox shows Days.
This is the scenario ID 1102 :: Test Case Create some Expense Sheets, part of the smoke test detailed in testlink (http://tools.openbravo.com:8891/testlink [^])

    * Login as userA
    * Go to Project & Service Management->Transactions->Expense Sheet
    * Click New and fill:
          o Description: Expenses Consultancy for Customer A project
          o Employee: Eduard
    * Go to Lines tab.
    * Click New and fill:
          o Reinvoincing: Y
          o Product: Service A
          o Quantity: 1
          o Project: Consultancy for Customer A
          o Project Phase: Project delivery
          o Project Task: Project presentation
    * Check that:
          o UOM: Day
          o Expense Amount: 1
          o Business Partner: CUSTOMER A
    * Go back to Header tab.
    * Click on Process Expenses button.
    * Click New and fill:
          o Description: Expenses Service Project for Customer A project
          o Employee: Eduard
    * Go to Lines tab.
    * Click New and fill:
          o Product: Service A
          o Quantity: 2
          o Project: Service Project for Customer A
    * Check that:
          o UOM: Day
          o Expense Amount: 2
    * Click New and fill:
          o Time Sheet: Y
          o Reinvoincing: Y
          o Product: Service B
          o Quantity: 80
          o Project: Service Project for Customer A
    * Check that:
          o UOM: Hour -> here is the bug.
Update UOM value after selecting the product.
No tags attached.
related to defect 00109232.50MP7 closed gorkaion The SL_ProductionPlan_WRPhase does not work properly 
related to defect 0012279 closed alostale Validation rule does not trigger always onChange event 
related to defect 00113362.50MP11 closed rafaroda 'Create Sales Orders from Expenses' process assumes that it will always find a price 
related to defect 00112422.50MP11 closed rafaroda in time sheet, can not select business partner if project don't have associated it 
related to defect 0011980 closed rafaroda Avoid inconsistent data in expense sheet lines. 
related to defect 00119602.50MP14 closed harikrishnan Delivery Method is not properly updated when creating a Sales Order 
related to defect 00119752.50MP11 closed harikrishnan Create Lines From Goods Receipt does not update secondary unit 
related to defect 00118292.50MP12 closed rafaroda In Process Plan, I/O product, does not calculate properly UOM 
Issue History
2009-08-28 22:00elopioNew Issue
2009-08-28 22:00elopioAssigned To => rafaroda
2009-08-31 08:04rafarodaNote Added: 0019295
2009-08-31 08:04rafarodaStatusnew => feedback
2009-09-01 04:19elopioNote Added: 0019357
2009-09-01 23:18elopioNote Added: 0019385
2009-09-01 23:20elopioStatusfeedback => new
2009-09-04 07:50elopioNote Added: 0019460
2009-09-14 13:48psarobePrioritynormal => urgent
2009-09-14 13:48psarobeSeverityminor => major
2009-09-14 13:48psarobeStatusnew => scheduled
2009-09-14 13:48psarobeversionmain => pi
2009-09-14 13:48psarobeNote Added: 0019908
2009-12-16 10:12rafarodaRelationship addedrelated to 0011336
2009-12-16 10:13rafarodaRelationship addedrelated to 0011242
2010-01-11 09:26rafarodaRelationship addedrelated to 0010923
2010-01-15 17:32rafarodaRelationship addedrelated to 0011980
2010-01-18 09:25rafarodaRelationship addedrelated to 0011960
2010-01-19 13:55rafarodaRelationship addedrelated to 0011975
2010-01-27 16:04hgbotCheckin
2010-01-27 16:04hgbotNote Added: 0023832
2010-01-27 16:04hgbotStatusscheduled => resolved
2010-01-27 16:04hgbotResolutionopen => fixed
2010-01-27 16:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/acdd19231c379e9a6ddb26e7ce41b4c2add7bb0e [^]
2010-01-27 16:09rafarodaRelationship addedrelated to 0011829
2010-02-01 11:30sureshbabuNote Added: 0023874
2010-02-01 11:30sureshbabuStatusresolved => new
2010-02-01 11:30sureshbabuResolutionfixed => open
2010-02-01 17:53hudsonbotCheckin
2010-02-01 17:53hudsonbotNote Added: 0023898
2010-02-04 08:42rafarodaStatusnew => scheduled
2010-02-04 08:42rafarodafix_in_branch => pi
2010-02-15 17:58rafarodaRelationship addedrelated to 0012279
2010-02-15 17:59rafarodaNote Added: 0024369
2010-02-15 17:59rafarodaStatusscheduled => resolved
2010-02-15 17:59rafarodaResolutionopen => fixed
2010-02-16 08:21sureshbabuNote Added: 0024377
2010-02-16 08:21sureshbabuStatusresolved => closed
2010-02-16 08:21sureshbabuFixed in Version => pi
2010-02-17 00:00anonymoussf_bug_id0 =>
2010-03-04 07:26hgbotCheckin
2010-03-04 07:26hgbotNote Added: 0025042
2010-03-10 18:28anonymoussf_bug_id => 2967926

Notes
(0019295)
rafaroda   
2009-08-31 08:04   
Hi Leo,

I am not able to reproduce this issue following these steps:

1) Create a Product Service B:
* Name = Service B
* UOM = Hours
* Product Type = Service
2) Go to Expense Sheet and create a new one.
3) Go to lines:
* Time Sheet = Y
* Product = Service B

UOM is correctly set to Hours.

Can you please provide feedback?

Thanks.
(0019357)
elopio   
2009-09-01 04:19   
This is the same verification where I get a 1 as the amount and you get a 0. I don't know what might be the issue, as it has happened at least 3 times in a row.
I'll reinstall everything and let you know if this happens again. Also I'll upload the code so tomorrow it will be executed in QA servers. This will give us a variety of environments.

pura vida.
(0019385)
elopio   
2009-09-01 23:18   
I can reproduce the bug. When I click the time sheet checkbox service b is selected but uom combobox is not updated. Please check it on QA machine, I'll send you the ip by mail.

thanks.
(0019460)
elopio   
2009-09-04 07:50   
I think that for the same reason, the amount textfield remains with 1 as it's value. Instead of 0, as it should be.
(0019908)
psarobe   
2009-09-14 13:48   
I can reproduce it
(0023832)
hgbot   
2010-01-27 16:04   
Repository: erp/devel/pi
Changeset: acdd19231c379e9a6ddb26e7ce41b4c2add7bb0e
Author: Rafa Roda Palacios <rafael.roda <at> openbravo.com>
Date: Sat Jan 23 04:37:26 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/acdd19231c379e9a6ddb26e7ce41b4c2add7bb0e [^]

Fixes issue 10431 UOM now properly updates in expense sheet lines.

---
M src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Product.java
---
(0023874)
sureshbabu   
2010-02-01 11:30   
when i click the Time sheet checkbox for the first time the UOM field update rightly to Hour, but when i uncheck the timesheet checkbox once again, the product field rightly changes to sercice A, but the UOM field not getting updated(i can able to reproduce in my context after executing the smoke test cases)
(0023898)
hudsonbot   
2010-02-01 17:53   
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/acdd19231c37 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/3d5bd712a24b [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16007.obx [^]
(0024369)
rafaroda   
2010-02-15 17:59   
Hi Suresh,

I will set this issue as resolved and I opened a related Platform issue 0012279 Validation rule does not trigger always onChange event

Thanks for your observation.
(0024377)
sureshbabu   
2010-02-16 08:21   
New issue as been opened and i am closing this issue.
(0025042)
hgbot   
2010-03-04 07:26   
Repository: tools/automation/main
Changeset: 5f4749854b1b980ba140785069aef28f708d7bcb
Author: Leo Arias <leo.arias <at> openbravo.com>
Date: Thu Mar 04 00:29:14 2010 -0600
URL: http://code.openbravo.com/tools/automation/main/rev/5f4749854b1b980ba140785069aef28f708d7bcb [^]

Removed an unnecesary function because issue 10431 is now solved.

---
M src-test/com/openbravo/test/integration/erp/gui/general/processscheduling/ProcessRequestPopUp.java
M src-test/com/openbravo/test/integration/erp/gui/projectandservice/transactions/ExpenseSheetLines.java
---