Skip to main content
Help Center

Generate flat rates automatically with rules

Rule-based billing items: a travel flat rate per on-site day, a travel flat rate via a time collector and a hotel allowance from six hours – generated automatically from booked times.

Video-Vorschau: Cost elements from rules

Cost elements from rules

YouTube · Klick lädt das Video

Video from the teamspace help library · auf YouTube ansehen ↗

Prerequisites

Cost rules generate flat rates automatically from booked times – a travel flat rate per on-site day, a hotel allowance from six hours, a travel flat rate per travel day. The rule is attached to an order item and takes effect when the invoice is created: teamspace analyses the times of the invoice according to the rule and creates the flat rates as additional invoice items.

TODO-DONE · EXPENSE-T05 · CLAUDE

Done 2026-06-24: all three screens captured. EXPENSE-ADM-01 on the real article “Accommodation flat rates for more than 8h”, EXPENSE-ADM-02 on the category dialog “On site” (Configuration → Projects → Project time categories, switch “Billable”; the “Travel time” category for case 2 also exists), EXPENSE-ADM-03 on the article “Time collector” (billing type “By effort”, Repetition = “Quantity check (not equal to 0)”, restriction category “Travel time”). Documented wording corrections in the text: the path is Projects → Project time categories (not Time tracking), the category is called On site (not “Work on site”), the category field on the item is Project times as basis → Category (not “only the category takes”), the daily limit Max. counter per day (not “Maximum per day”), and the time-collector check Repetition = Quantity check (not equal to 0) (not “Quantity check = 0”).

Article 'Accommodation flat rates for more than 8h' (area Other), accordion 'Rule-based billing items (e.g. travel expenses)' expanded: calculation basis 'Per time', project-times category 'On site', field 'Minimum time per day' with 8h 00 and 'Max. counter per day' = 1
Article "Accommodation flat rates for more than 8h", accordion "Rule-based billing items (e.g. travel expenses)" with calculation basis "Per time", the "On site" category as basis, "Minimum time per day" (8h 00) and "Max. counter per day" = 1.

ℹ The exact sidebar wording of the configuration mode is verified against the live tenant in a separate configuration run. The paths below come from the training video and may differ slightly in your installation.

Two basic rules up front

  1. Rule items are defined in the order and only come into play when invoicing.
  2. Only the times linked to the invoice are analysed. Here the devil is in the detail: times that aren’t billed by effort (e.g. travel times) normally don’t land in the invoice – so the rule doesn’t see them at all. That’s what the time collector is for (case 2).

For every rule you need: an article of type rule-based billing item, the global activation, an order item with the flat rate and the right time category in the time categories.

Prerequisite: enable rule-based billing items

Before you can even create a rule article, the feature has to be switched on globally. As long as it’s off, the Rule-based billing items section is missing from the article and the order item – so you have nowhere to store the rule.

You’ll find the switch under Configuration → Finance → "Settings" tab, section Rule-based billing items (e.g. travel expenses) (search-field tip: filter by rule). Tick Active. Directly below sit the global defaults:

  • Automatically create items when invoicing – with this tick, teamspace creates the flat rates by itself at every invoicing run. Without it you have to add them manually via Create item via rules after every invoice draft.
  • Minimum series length – from how many consecutive trigger days a series flat rate takes effect at all (default in the demo: 3).
  • Categories – globally restricts which time categories the rules may evaluate; All allows any category, the fine control then happens per order item.

Only once Active is set does the Rule-based billing items section appear on the article – the next step in case 1.

Configuration → Finance → 'Settings' tab, section 'Rule-based billing items (e.g. travel expenses)' with the 'Active' tick set, 'Automatically create items when invoicing' enabled, the 'Minimum series length' field (3) and 'Categories' on 'All'
Configuration "Finance → Settings": the section "Rule-based billing items (e.g. travel expenses)" with "Active", "Automatically create items when invoicing", "Minimum series length" and "Categories".

Case 1 – travel flat rate per on-site day

Goal: per day on which at least one hour was booked on site, a flat rate of €50.

  1. Check the activation. Make sure Rule-based billing items (e.g. travel expenses) is Active in Configuration → Finance → Settings – see the Prerequisite section above. It’s best to also set Automatically create items when invoicing there, otherwise you have to click Create item via rules manually after every invoice draft.
  2. Create the article. In the system configuration under Finance, create an article flat-rate-rule: number (e.g. 3080), tax rate 19%, area Other. In the rule-based billing item section, set that no subproject is created and Maximum per day = 1.
  3. Time category for on site. Configuration → Projects → Project time categories. Create a new category On site, enable the Billable switch. This gives your team the category to choose when booking time.
  4. Set up the order item. In the order, an item flat-rate-rule. In the Rule-based billing items accordion: choose the On site category as Project times as basis → Category, amount €50. With Max. counter per day = 1 there is exactly one flat rate per day – even if three on-site times are booked on the day.
  5. Create the invoice. If you book three times on three days, two of them on site, two flat rates arise at the invoicing run. Via Type of summary → per invoice you get one item with quantity 2 instead of two rows.
Configuration → Projects → Project time categories: the category dialog 'On site' (name 'On site', Active, sorting 115) with the 'Billable' switch enabled; in the background the category list with Billable, Non-billable, On site and Travel time
Configuration "Projects → Project time categories": the category dialog "On site" with the "Billable" switch enabled (in the list behind it also the "Travel time" category for case 2).

ℹ If flat rates don’t update automatically after you manually correct the times, recalculate them with the Create item via rules button.

Case 2 – travel-time flat rate with a time collector

Goal: per day with travel time, a flat rate of €50; the travel times themselves not billed by effort. Since travel times aren’t billable, they don’t land in the invoice – the rule doesn’t see them. The trick: a time collector that pulls the travel times into the invoice without billing by effort.

  1. Time category for travel time. Configuration → Projects → Project time categories. New category Travel time, the Billable switch not set (internal time).
  2. Time-collector article. In the configuration under Finance, an article time-collector, number (e.g. 3340), area Other. Important: in the Pricing accordion, set the Billing type to By effort and the Repetition field to Quantity check (not equal to 0) instead of the default amount check – the collector has an amount of €0, after all. Without this quantity check, teamspace ignores the item and the times drop out again. Also, under Default values, Do not create project.
  3. Flat-rate item. In the order, set the flat-rate-rule so that it only analyses the Travel time category.
  4. Time collector into the order. An item of type time-collector. Set: can assign all times, and as a restriction collect only Travel times.
  5. Create the invoice. If two travel-time days are booked, two travel flat rates arise; the travel times run through the time collector at a value of €0 – they carry the activity report, not the fee.
Article 'Time collector', accordion 'Pricing' with billing type 'By effort' and the field 'Repetition' on 'Quantity check (not equal to 0)'; below it the default values 'Do not create project', 'Assign all times' and the billing restriction category 'Travel time'
Article "Time collector": the billing type "By effort" with `Repetition` = "Quantity check (not equal to 0)" instead of the default amount check; the "Travel time" category is set as the restriction.

ℹ Nicer invoice: in the order, create areas (Consulting, Travel, Travel duration) and sort the items into them. In the description of a travel flat rate, the placeholder xStartx automatically fills in the specific date when the invoice is printed.

Case 3 – hotel allowance from six hours

Goal: for every day with at least six hours of on-site work, €120 hotel allowance; not on pure arrival/departure days with fewer hours. In addition, per arrival/departure day a travel flat rate of €50.

You build two rule-based items – travel-flat-rate for arrival/departure, hotel-flat-rate for full days – on the same order. You parametrise the hotel-flat-rate with Minimum time per day = 6 hours, the decisive threshold.

In the same rule-based billing item accordion you’ll find further switches:

  • Maximum per invoice – e.g. the postage flat rate of €20 per invoice, as law firms charge it (Maximum per invoice = 1).
  • Series – when a flat rate only takes effect after e.g. five consecutive days (Per series only once).
  • Calculation scheme – which items of an invoice are included in the trigger count; also “don’t count items again that have already been considered elsewhere”.

When the rule doesn’t take effect

  • The rule-based billing item section is missing from the article: the global activation in the settings isn’t set.
  • The category is missing from the time categories: without category distinction, all times trigger the rule or none do.
  • Times don’t land in the invoice: internal times need a time collector with Repetition = Quantity check (not equal to 0).

Also for employee commissions

The same rule tool automatically generates employee commissions: when item X is sold, the sales employee gets e.g. 5% of the sales price or gross profit. You create a commission rule on the order, teamspace generates the commission element when invoicing. Commission rules follow the same switches – only that the trigger isn’t a day but an item.

Common questions & needs

You want to …How to
A flat rate per on-site dayCategory On site + order item with Project times as basis → Category + Max. counter per day = 1.
Get non-billable travel times into the ruleTime-collector article with Repetition = Quantity check (not equal to 0) in the order.
A hotel allowance only from a number of hoursMinimum time per day = 6 in the flat-rate item.
A fixed postage flat rate per invoiceMaximum per invoice = 1.
One item with a quantity instead of many rowsType of summary → per invoice.
The date in the flat-rate descriptionPlaceholder xStartx in the description of the order item.
Flat rates automatically without a clickThe Automatically create items when invoicing tick in the settings.