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. The ↺ stands for a button in the panel header.
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 without subaccounts that collects fringes, supplements, extra costs or tax, **Based on:** offers a third option:
- **From accounts**: the account follows the cash flow rules of the accounts its amounts come from, in proportion to those amounts.
With **From accounts**, the dialog shows this message in place of the fields:
This account follows the cash flow rules of the accounts it collects from, in proportion to their amounts. It needs no dates of its own. If it has no company of its own, it takes over the companies of those accounts.
If a rule has a basis other than these three, the dialog cannot edit it and shows:
This rule uses a basis this dialog cannot edit. Choose Milestones/dates or Payment cycle above to redefine it.
Fill in one row for each payment. Each row pays a share of the account's total.
| Field | What you set | | ----------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | | Value: percentage  or amount  | A percentage of the total or an amount. Click the icon to switch between the two. KOSMA converts the value | | Milestone  or calendar date  | 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 needed to reach 100%. A rule holds up to 10 rows. Each row must come later than the row above it. KOSMA therefore greys out every milestone that is not after the milestone in the row above. The calendar starts on the day after the date in the row above.
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.
The date shown next to a milestone is counted in days from the **First Shooting Day** milestone. If the **First Shooting Day** has no date, a row at a milestone pays nothing.
For more on milestones, see [Use milestones in cashflow rules](/kb/article/use-milestones-in-cashflow-rules).
Click into one of the two frames below and fill it in. KOSMA 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.
To set how often payments fall due, use the **Select cycle...** list under **Payment cycle** at the top. With a phase, you must choose a cycle yourself. With **Cycle start** and **Cycle end**, KOSMA otherwise takes the first cycle in the list. 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**. To discard your changes, click **Cancel**, press Esc or close the dialog.
To remove the rule, click **Reset**, then **Ok**. **Reset** empties the fields, so **Ok** works without 100%. The choice under **Based on:** stays, except that **From accounts** becomes **Milestones/dates**. Click **Cancel** instead, and 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 discard it. 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