# Bug COSTS-15 - Changing default past rate does not update budget/cost report as expected

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Costs and budgets |
| Target versions | 18.0.0 |
| Observed in versions | 13.0.0 |
| Bug found in version (deprecated) | 13.0.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.  Go to a project with the _Budget_ and _Time and costs_ modules enabled
2.  In the Members module, set a default rate (not a project-specific rate) for a member via their &quot;Rate History&quot; page
3.  Create a work package, assign it a budget and log time for the member in question
4.  Note the total budget labor and labor costs for that work package.
    1.  Also navigate to the the selected budget via the _Budget_ module and see that the spent column has updated accordingly
5.  Now change the default rate of the member, backdating it to before the time that was logged
6.  Go back to the work package, access the budget and note that the costs have not updated
    1.  Also navigate to the cost report and notice the same thing

### What is the buggy behavior?

*   The updated default rate (if it is back-dated) does not affect the budget allocated/spent

### What is the expected behavior?

_Describe how the application should behave like. Example:_

*   The updated default rate (if it is back-dated) should affect the budget allocated/spent

### Important note

*   This seems to only apply to the default rate. If the rate is set per-project, it behaves as expected and total labor costs are updated to reflect the new backdated rate.
*   There might be a valid reason it behaves like this, and the current behaviour _might_ make sense. If this is the case, we should better explain it to the user.

### Environment information

OpenProject 13.0  
fe379a6f (2023-08-11 18:16:18 +0000)  
Firefox 116.0 / Mac  
EN
