# Bug OP-7977 - Copy budget: Manually set cost are set back to cost deduced from number of units

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-7977

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 11.1.0 |
| Observed in versions | 11.1.0 |
| Sprint | 11.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 11.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### **Environment**:

qa-stage

11.0.4.

### **Steps to reproduce:**

1.  Create a budget and add cost positions.
2.  Add at least one cost position which has a custom budget amount (by entering units for a cost type but then clicking the &quot;edit&quot; icon to enter a custom amount) and save the budget.
3.  Copy the budget and compare the values.

### **Actual Behavior**

The manually adjusted budget for a cost position reverts back to the inferred budget / cost based on the number of units.

Example:

*   The cost per unit is 250 €. In the original budget a value of &quot;1&quot; is set but then the budget position is adjusted to &quot;2500 €&quot; (instead of 250€).
*   In the copied budget the value is changed back to 250 € (instead of 2500 € in the original budget).

<figure class="image"><img src="/api/v3/attachments/19907/content"></figure>

### **Expected Behavior**

The original values are maintained when copying the budget.
