Cost Control
You can delete one or several cost items, undo a deletion and tell when moving or editing an item is the better fix.
Deleting a cost item removes it from the set. If you delete it in the **Cost Items** panel, you can undo the deletion only right after it, with **Edit** > **Undo**. Delete an item to clear a duplicate or a commitment that was cancelled before it was paid. For most other problems, moving or editing the item is the better fix.
In the **Cost Items** panel under the account, click  in the item's row. KOSMA deletes the item without asking and recalculates the account.
 **Delete** in the toolbar and the `⌫` or `Delete` key delete the selected account and its subaccounts, and remove them from the budget too. This happens even when a cost item is selected in the **Cost Items** panel. If a markup row is selected, they delete the markup instead, and KOSMA does not ask first.
KOSMA asks before it deletes the account. To keep the account, click **Cancel** when you see this question:
**Message:** Are you sure you want to delete {count} account(s)? Subordinate subaccounts will be removed too.
In the toolbar, click  **Cost Item List**. KOSMA opens the **Cost Items List** with every item on the set's accounts. Items on a markup row are not in the list. Delete them one at a time with  in that row's **Cost Items** panel. Select the items. To select every item the filters leave visible, press `⌘ A` (`Ctrl A` on Windows). Then click **Delete Selected**. KOSMA asks before it deletes the items:
**Message:** Are you sure you want to delete selected cost item(s)?
To delete a single item from the list, click  in its row. KOSMA asks here too. For the list's columns and filters, see [work with the cost item list](/kb/article/work-with-the-cost-item-list).
The account's **Expected** or **Paid** falls by the item's amount. **Free** is the forecast minus what is booked, and it rises by the same amount. **Forecast** stays as it is.
This holds while **Consolidate** is off and the account's cost items add up to no more than the forecast you set. If **Consolidate** is on, **Forecast** falls by the item's amount and **Free** stays the same. If the cost items add up to more than the forecast you set, **Forecast** falls too, and **Free** rises by less than the item's amount or not at all.
A paid cost item stands for money the production has paid out. Deleting the item does not undo the payment. KOSMA only removes the record, and the set then no longer agrees with the accounting. For a paid item, moving or editing it is almost always the better fix.
| The problem | The fix | | ---------------------------------------- | -------------------- | | Booked to the wrong account | Move it | | The same cost booked twice | Delete the duplicate | | The amount is wrong | Edit it | | The commitment was cancelled, never paid | Delete it |
If the money was paid, the item belongs in the set. To book it on another account, see [move cost items to another account](/kb/article/move-cost-items-to-another-account).
A commitment you entered by hand and the matching invoice from a later import can become two items for one cost. This happens when the import cannot match the two by itself. To find such a pair, open the **Cost Items List** and type the reference or a word of the description into the filter box above **Reference** or **Description**. Then delete one item of the pair. **Find Duplicates** in the list is greyed out. When you point at it, KOSMA shows:
**Message:** Coming soon
You can prevent the duplicate. When you import the invoice, untick **Copy Cost Control Dataset** in the third step. Then, in the fourth step, drag the imported line onto the item you entered by hand. See [import accounting data](/kb/article/import-accounting-data).
Markdown