Budgeting
You can set when an account's total falls due in the cash flow plan: in shares at milestones or dates, or at a regular interval over a payment cycle.
A cash flow rule sets when an account's total falls due in the cash flow plan. An account without a rule is missing from the cash flow plan. You need a licence that lets you edit the budget.
Select the account, subaccount or markup, then click  **Edit cashflow rule** on the **Cashflow** panel in the account details. If the panel is empty, you can also click its header. KOSMA opens **Set Cash Flow Rule**. The header shows the number, name and total of the account, and the **Select Preset...** list on the right.
On an account with subaccounts, you edit one rule for all of them. When you click **Ok**, KOSMA gives this rule to every subaccount and replaces the rules they had.
If the subaccounts already have different rules, the **Cashflow** panel shows this message:
Mixed contents · Click ↺ to reset
Under **Based on:**, choose one of two options. An account without a rule opens on **Milestones/dates**.
- **Milestones/dates**: shares of the total fall due at milestones or dates you set, for example a deposit at contract signing and the balance at picture lock. - **Payment cycle**: the total falls due in parts at a regular interval over a period, for example salaries, rent or insurance.
If you switch to **Milestones/dates**, KOSMA clears the phase and the cycle you chose for **Payment cycle**. On an account that collects fringes, supplements, extra costs or tax, the rule can follow the accounts the amounts come from. The dialog then shows this message in place of the fields:
This rule uses a basis this dialog cannot edit. Choose Milestones/dates or Payment cycle above to redefine it.
To give the account a rule of its own, choose **Milestones/dates** or **Payment cycle**.
Fill in one row for each payment. Each row pays a share of the account's total.
| Field | What you set | | ----------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | Value with  or  | A percentage of the total or an amount. Click the icon to switch between the two. KOSMA converts the value | |  or  | Whether the row pays at a milestone or at a calendar date. Click the icon to switch | | **Choose date** | The milestone, listed with its date, or the calendar date. A milestone moves when the schedule moves; a calendar date stays | | **+/-** … **Days** | Days before (negative) or after (positive) that point, for terms such as 30 days after delivery | |  **Delete** | Removes the row |
When every row has a milestone or a date, you can click  **Add** next to the last row. KOSMA fills the new row with the percentage still missing to 100%. A rule holds up to 10 rows. Each row must come later than the row above it: KOSMA greys out the milestones on or before the one above, and the calendar of a later row starts on the next day. If you delete a row, KOSMA adds its percentage to the last remaining row. You cannot delete the only row. You can save when the rows together make exactly 100% of the total. Below 100%, the value fields turn red.
KOSMA counts a milestone in days from the **First Shooting Day**. If the **First Shooting Day** has no date, a row at a milestone has no date and pays nothing.
For milestones in detail, see [use milestones in cashflow rules](/kb/article/use-milestones-in-cashflow-rules).
Click into one of the two frames and fill it in. KOSMA uses the frame you clicked and dims the other one.
- **Cycle start** and **Cycle end**: for each of the two, choose a milestone or a date as in step 3, each with its own **+/-** **Days**. The end cannot be before the start. - **Cycle Start / End Defined by Phase**: choose the phase under **Choose phase...**. The payment period starts and ends with the phase.
Under **Payment cycle**, choose the interval of the payments in **Select cycle...**. With **Cycle start** and **Cycle end**, if you choose no cycle, KOSMA takes the first one in the list. With a phase, you choose the cycle yourself. To change the cycles in the list, click **Edit cycle presets** at the bottom of the list. For both frames and the cycles in detail, see [use phases in payment cycles](/kb/article/use-phases-in-payment-cycles).
When the rule is complete, click **Ok**. KOSMA saves the rule. To discard your changes to the rule, click **Cancel**, press Esc or close the dialog.
To remove the rule from the account, click **Reset**, then **Ok**. **Reset** empties the fields of the chosen option and keeps the choice under **Based on:**. If you click **Cancel** after **Reset**, the account keeps its rule.
In the **Select Preset...** list, choose a saved preset. KOSMA replaces the whole rule with the preset. To save the rule on screen as a preset, choose **Save as Preset**. KOSMA saves it at once as **New Preset**, even if it is not complete, and opens **Presets** with the name ready to edit.
Click **Ok** there to keep the preset, or **Cancel** to delete it again. For details, see [save and reuse a cash flow rule preset](/kb/article/save-and-reuse-a-cashflow-rule-preset).
**If Edit cashflow rule is missing.** When you cannot edit the budget, the **Cashflow** panel shows the rule without  **Edit cashflow rule**. This is the case on a Free licence or an expired trial, on a budget shared with you read-only, on a budget linked to a cost control set, and when you are signed out. See [what your licence includes](/kb/article/what-your-licence-includes).
Markdown