Budgeting
You know what Clear Budget Data and Renumber Budget Items change in a budget and what you can undo.
The **Edit** menu has two commands that change a whole budget at once. With **Clear Budget Data**, you empty the figures and keep the structure. With **Renumber Budget Items**, you give the rows new numbers in their current order.
Use this command to keep the structure of a finished budget and enter new figures in it. In the **Edit** menu, choose **Clear Budget Data**. KOSMA asks you to confirm:
This resets quantity, price per unit and factor on all budget items, and the base and percentage on all markups ({count} item(s) in total). Names and all other details are kept. Continue?
In this message, "budget items" means accounts and subaccounts. {count} is the number of rows that change: every account and subaccount that has a quantity, a price per unit or a factor, and every markup that has a base or a percentage. After you confirm, every account and subaccount has a quantity of 1, a factor of 1 and a price per unit of 0, like a new account. Every markup has a base of 0 and a percentage of 0, so all totals show 0. You can then type new figures straight into the same cells.
After you move rows, their numbers no longer follow the order of the rows. In the **Edit** menu, choose **Renumber Budget Items**. KOSMA asks you to confirm:
This rewrites the number of every category, group, and account in this budget to match their current order. It can't be undone in a single step. Continue?
When you confirm, every row gets the number that matches its current place. This includes markups, although the message doesn't mention them. For example, if account 9.02 becomes 9.04, KOSMA changes `ACCOUNT("9.02")` in a formula to `ACCOUNT("9.04")`. Your formulas keep referring to the same account. For how KOSMA builds the numbers, see [number accounts and groups](/kb/article/number-accounts-and-groups). For how formulas refer to accounts, see [reference another account in a formula](/kb/article/reference-another-account-in-a-formula).
**Discard** in the **Project** menu does not undo these commands. KOSMA saves the budget about one second after the command, and **Discard** returns only to the last saved state, which already includes the command. **Discard** also deletes the Undo history, so you can no longer undo the command afterwards.
To undo **Clear Budget Data**, choose **Undo** in the **Edit** menu once. KOSMA restores all the old values, even after saving. **Renumber Budget Items** can't be undone in a single step. For more, see [saving, discarding, and why KOSMA makes a budget read-only](/kb/article/save-discard-and-read-only).
KOSMA greys out the commands when you cannot edit the budget. This is the case on a Free licence, on a licence that does not cover Budgeting, on a budget that was shared with you for reading only, and when you are signed out. The reasons are in [what your licence includes](/kb/article/what-your-licence-includes).
Both commands work offline as long as you are signed in. KOSMA saves the change on this computer and syncs it when you are back online. See [work offline or in local-only mode](/kb/article/work-offline-or-in-local-only-mode).
Markdown