# Bug COSTS-170 - Moving a WorkPackage from one Project to another does not update the user's hourly rate

Project: Stream Time & Costs
Status: closed
URL: https://community.openproject.org/work_packages/COSTS-170

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Time tracking |
| Target versions | 18.0.0 |
| Observed in versions | 17.8.0 |
| Bug found in version (deprecated) | 17.8.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  As an administrator, create two projects, **A** and **B**, both with the _Time and costs_ module enabled.
    
2.  Add user **U** as a member of both projects, with a role permitting _Log time_ and _View work packages_.
    
3.  Go to _Administration → Users → U → Rate history_ and set an hourly rate for **U** of **10.00 EUR** in project **A** and **99.00 EUR** in project **B**, both valid from now.
    
4.  Create work package in project **A**.
    
5.  Log **2 hours** on the WP for user **U**.
    
6.  Open _Time and costs_ and confirm the labor costs for that entry are **20.00 EUR** (2 h × 10.00 EUR).
    
7.  Open work package, change its **Project** from **A** to **B**, and save.
    
8.  Open _Time and costs_ again and filter on project **B**.
    
9.  The time entry is correctly reassigned to project **B** — it now appears in project B&#x27;s cost report and no longer in project A&#x27;s.
    

### What is the buggy behavior?

*   Its labor costs are still **20.00 EUR**, calculated with project **A**&#x27;s rate of 10.00 EUR/h.
    

### What is the expected behavior?

1.  After the move, the time entry&#x27;s costs should be recalculated against the target project&#x27;s rate: **198.00 EUR** (2 h × 99.00 EUR).
