Budgeting
You know which cells of the budget grid you can type into, how to move through the grid with the keyboard and how to show more or less of the account tree.
The budget grid shows the category selected in **Categories** as a tree of groups, accounts and subaccounts. You type values into some cells, and KOSMA calculates the others.
You type into **No.**, **Description**, **Quantity**, **Unit**, **Price/Unit** and **X**. KOSMA calculates the two **Total** columns, and you cannot type into them. **Total** shows the amount in the account's own currency, and the second **Total** column, whose header ends in a currency code, shows it converted into the currency chosen in the toolbar. KOSMA always calculates both. **Quantity**, **Price/Unit** and **X** accept input only on an account row or a subaccount row; on every other row, such as a group, they stay blank. The grid has no column for the currency. You choose it inside the **Price/Unit** cell, from a list.
On a budget you cannot edit, for example with a Free licence or a budget shared with you read-only, you cannot type into any cell; see [saving, discarding and why a budget is read-only](/kb/article/save-discard-and-read-only).
When an account has subaccounts, you enter its values in the subaccounts, and you cannot type into the account row's **Quantity**, **Unit**, **Price/Unit**, currency or **X**. When all its subaccounts have the same **Unit**, **Price/Unit**, currency and **X**, the account row shows these values and the sum of their **Quantity**. Otherwise all five cells stay empty. For how KOSMA adds up an account, see [how an account total is calculated](/kb/article/how-an-account-total-is-calculated). KOSMA shows the subaccounts on a grey background below their account.
Press `↑` or `↓` to move the selection one row up or down. Hold `Shift` as well to extend the selection over several rows.
Press `Tab` to move to the next cell you can edit in the same row, and `Shift+Tab` to move to the previous one. Tab stops only in **No.**, **Description**, **Quantity**, **Unit**, **Price/Unit** and **X**. After the last of these cells, `Tab` returns to the first cell of the same row. To reach another row, press `↑` or `↓`.
**Quantity**, **Price/Unit** and **X** accept a [formula](/kb/article/write-a-formula): a number, a variable or a function. When you type into one of these cells, KOSMA opens an editor over the cell. The editor suggests functions and variables. In every interface language, write decimals with a point, for example `2000.50`. A comma separates the arguments of a function.
A fold arrow marks a row with rows below it: subaccounts, or the fringes, supplements and extra costs applied to the account. An account without subaccounts can therefore have a fold arrow too. For how these rows are shown, see [show fringes where they collect or arise](/kb/article/show-fringes-where-they-collect-or-arise).
To open or close every row at once, click  **Expand all** or  **Collapse all** in the toolbar. The shortcuts are `⌘⇧→` and `⌘⇧←` on a Mac, `Ctrl+Shift+→` and `Ctrl+Shift+←` on Windows. On a budget you cannot edit, the shortcuts do not work; the buttons do.
Each category ends in a pinned row with the category's name and **Total**, which shows the category's total. This row is not part of the account list: the arrow keys pass over it, and you cannot select it with a click.
Markdown