EN
CODEMETA OSDocumentation
Open the app
Billing

Contracts in billing

Reading time · 16 min readUpdated · 20 October 2026

Goal: Set up a maintenance contract so that exactly the right time entries are covered, deducted from a contingent or billed — and understand how the contract itself bills its monthly items.

To create a contract and organizations and contacts, see Customers & Contracts. This page goes deeper and explains what a contract does in billing.

Two contract types

Maintenance contract License contract
Purpose IT support, managed services, support agreements Recurring licenses (e.g. Microsoft 365, antivirus)
Covers time entries yes — included, via a contingent or at the contract rate no
Own conditions Hourly rates, mileage rates, surcharges, rounding –
Recurring items yes, invoice in Codemeta OS via “Bill now” yes, invoice in weclapp via “Bill”

The contract type (e.g. “Maintenance contract Premium”) is a template for the default values of a new contract: billing cycle, notice period, renewal and SLA profile. Administration maintains contract types under Service types → tab “Contract Types”.

The lifecycle of a contract

  1. DraftBeing edited, covers nothing
  2. Approval pendingOptional: submitted for approval
  3. ActiveCovers time entries, is billed
  4. ExpiringEnds soon, still covers
  5. CancelledEnded, covers nothing any more
Status What the contract does Possible actions
Draft nothing — neither coverage nor billing “Submit for approval”, “Activate”, “Discard draft”
Approval pending nothing “Approve”, “Back to draft”
Active covers time entries, “Bill now” possible “Terminate”
Expiring as Active “Renew”, “Terminate”
Cancelled nothing any more “Reactivate”

Cancellation, renewal, expiry

  • “Terminate” opens a dialog with “At end of contract”, “Immediately” or “Custom date”. If the date is in the future, the contract continues normally until then — with coverage and billing. The day after, it switches automatically to Cancelled. “Terminate” is hidden as soon as the notice period has passed.
  • Automatic renewal: If it is switched on, Codemeta OS renews the contract itself — up to 30 days before the end date, by the set renewal period. Contingents that are not topped up automatically are reset in the process.
  • Expiring: Contracts without automatic renewal switch to “Expiring” in good time before the notice period ends, and those responsible are notified. The contract ends on the end date.
  • “Renew” or “Reactivate” extends by the set duration, sets the usage of all contingents to 0 and puts the contract back to Active.

What a maintenance contract covers

This is the most important question for billing: is a time entry billed, is it included, or is it deducted from a contingent? Codemeta OS answers it automatically for each time entry when it is approved.

The four billing modes

Billing mode What happens to the time entry On the service report
Included Settled by the contract. No amount, no contingent usage. In the list of time entries with the note “Included”, without an amount
Contingent Deducted from the chosen contingent on approval. If it is used up, the overage policy applies. With the note “Contingent”, without an amount; any excess is billed normally
Contract hourly rate Billed — at the hourly rate from the contract. With an amount
Billable Billed normally. If the contract conditions contain an hourly rate for the service type, it applies. With an amount

Step 1: What counts as a contract service? (tab “Definitions”)

Here you set the frame. Under “What counts as a contract service?” you choose:

  • “All services — except the following exceptions” (default): e.g. everything except the service type “Project work”.
  • “Only the following services”: e.g. only “Remote support” and “On-site service”.
  • “Only explicitly assigned combinations”: only what is explicitly listed in the assignments.

You can include or exclude by service types, locations, technicians and ticket types — e.g. “Faults included, change requests not”. What is excluded here is treated as if the contract did not exist: it is billed normally, and the contract’s hourly rates and surcharges do not apply either.

The Definitions tab: project work is excluded from the contract

Step 2: How is it billed? (tab “Assignments”)

Every contract has a default assignment “All assets (default)”. Expand it and set the billing mode under “Coverage” — for “Contingent” additionally which contingent is charged.

The billing mode of an assignment with the four options

Use “+ Add assignment” to create deviating rules, each with its own billing mode:

  • Specific asset — a single device of the customer (e.g. the server “SRV-01”),
  • Asset type — all devices of one type (e.g. all firewalls),
  • Location — all devices at one location of the customer,
  • Employee or All employees (default) — employees of the customer to whom the contract applies.

Differences by service type are not set here, but via the exceptions in the tab “Definitions” (see above).

If several matching rules exist, the most specific one wins:

Which rule applies to a time entry?
  1. Specific asset

    The time entry is linked to exactly this device (directly or via the ticket).

  2. Asset type

    The linked device has this type.

  3. Location

    The time entry was booked for this location of the customer.

  4. Default (“All assets”)

    The general rule of the contract.

If several active contracts of the customer have an equally specific rule, the newest contract wins.

Example: The car dealership Autohaus Muster has the maintenance contract “IT support Premium”: default = Contingent (10 hours per month), asset type “Firewall” = Included, and the service type “Project work” is excluded in the definitions. One hour of support on the firewall is included. One hour of support on the printer is deducted from the contingent. One hour of project work is billed normally.

Special rules

  • Only active contracts in the period: Coverage comes only from contracts with the status Active or Expiring, and only for time entries between start and end date.
  • All or nothing: If a time entry is linked to several devices and one of them is not covered, the whole time entry is billed normally.
  • Only the working time: Coverage applies to the time of the time entry. Trips to a covered time entry are still billed — unless you settle them via a contingent of the type “Trips (km)”.
  • Project work: Time entries in separately billed projects are never covered by a contract — unless contract coverage is explicitly switched on for the project.
  • No contract selectable: In the time entry form you do not select a specific contract. Under “Contract assignment” you can only set “Automatic” (default), “On the contract” or “Not on the contract” — e.g. to bill a special time entry deliberately. “Not on the contract” also switches off the contract rates.
  • The field “Contract” on the ticket is information and does not decide coverage.

How you see it when booking

If the customer has an active contract, the time entry form shows a notice “Customer has active contract” with the contract name — for contingents also the remaining balance and “This booking uses ≈ …”. Selection lists mark service types with “(Contingent)” or “(Contract rate)”.

The display is an estimate: “Estimate — exact debit happens on approval.” Only when approving is the decision binding and the contingent charged.

Contingents

A contingent is a credit on the contract that is used up by time entries. You find it on the contract in the tab “Overview”, in the card “Contingents”, and create one via “+ Add contingent”.

Types and periods

Type Used up by
Hours the billable time of the time entry
Monetary (EUR) the value of the time entry (time × hourly rate)
Trips (km) the kilometers of the trips (round trip counts double)

For the “Period” you choose:

  • “One-off (no automatic top-up)” — e.g. a block of 20 hours that applies until used up. Top up later via “Top up”.
  • “Refill monthly / quarterly / yearly” — e.g. 10 hours per month. At the start of each period the contingent is reset to the set amount. Remaining balance expires; an overdraft is carried into the new period. Via “First refill” you set from when this applies — time entries before this date are billed normally.

The type cannot be changed after creation.

When it is debited

  1. The time entry is booked — the form shows the expected usage.
  2. The time entry is approved — now the contingent is charged.
  3. If the approval is withdrawn or the time entry deleted, the amount is credited back.

Debiting happens only if the applying rule has the mode “Contingent” and points to an active contingent. If the contingent is deactivated or deleted, the time entry is billed normally. “Included” never touches a contingent.

When the contingent is used up: the overage policy

Via the gear icon on the contingent → “Overage Policy”:

Rule What happens
Allow (default) The time entry is split: the part up to the remaining balance is covered, the rest is billed normally.
Allow with Surcharge As “Allow”, but the remainder carries a surcharge in %. This surcharge appears only on invoices from contract billing, not on the service report.
Block Approval is refused. Only people with the right “Manage billing & subscriptions” can still approve.
Notify Behaves like “Allow”.

Where you see the balance

  • Contract → Overview → Contingents: usage per contingent, “Show history” with all movements (time entry, trip, top-up, expiry) and balance progression.
  • Contract → tab “Time entries”: all time entries of the contract with the column “Coverage” and “Totals per contingent period”.
  • Time entry form: remaining balance and expected usage.

An active maintenance contract with a partly used hours contingent

Contract conditions (tab “Conditions”)

Here you set the prices at which the contract bills. Each field only overrides what you fill in — empty fields mean: the default of the customer or service type applies.

Section Content Affects
Hourly rates Per service type: €/h and €/km, each with “Valid from” Hourly rate (level 2 of the order of precedence) and mileage rate
Travel fees “Travel €/km”, “Flat fee per assignment”, “Vehicle base fee” Only “Travel €/km” is effective (see Trips)
Overtime surcharges Time windows, weekdays, holidays, %; optionally only for certain service types Replace the surcharges of the service type
Rounding parameters Interval, mode, minimum time per service type Billable time

For price changes the same applies everywhere: create a new row with “Valid from”, leave the old one in place. Rates are frozen when booking; changes do not affect time entries already booked.

Contract conditions with hourly rates, travel and weekend surcharge

Recurring items and the contract invoice

In the tab “Items” you record what the contract itself costs regularly — e.g. “Managed Workplace, 12 workstations at 39.00 €”.

Field Meaning
Item type Recurring, one-off, surcharge, discount or note; use “Add group” to structure the invoice
Quantity / Quantity source Static, or counted automatically: active assets of the customer, assets by type, users of the customer, tickets per period, among others. The quantity is determined anew when billing.
Unit price, Discount (%) When an article is selected, its standard price is proposed and then fixed in the item.
Validity Period in which the item is billed

The “Monthly revenue” in the right-hand column of the contract is calculated from these items.

How the contract invoice is created

  1. Open the active contract and click “Bill now” at the top right.
  2. Codemeta OS bills all valid items for the current billing cycle (quantity × unit price minus discount). One-off items are billed only once.
  3. An invoice draft is created in the list “Invoices” (source “Contract”), which you check and post.

Good to know:

  • The contract invoice contains only the items. Time entries that are not covered are billed as usual via the service report.
  • Each item is billed in the rhythm of the contract. Partial months are not billed pro rata.
  • Price adjustment: If the contract has an annual price adjustment (“Fixed percentage” with “Percent per year” and “Reference date (month)”), the recurring items are increased once a year by the percentage in the reference month when billing. The variant “Consumer price index” also uses the fixed percentage entered.

License contracts

License contracts are billed via “Bill”. Codemeta OS checks the “Billing interval” (monthly, yearly, no billing) and creates the invoice directly in weclapp. The prices of the license items are fetched from weclapp when creating the contract (customer price before default price) and can be overwritten.

Profitability of a contract

The tab “Compliance” shows whether a contract is worthwhile: monthly revenue (MRR), costs per month (covered hours at the standard rate plus trips and expenses), margin per month and “Saved for customer”, plus the progression over the last 12 months and the top assets and service types. This helps you recognize contracts where the contingent is permanently overdrawn or where the flat price no longer fits.

If weclapp is your leading system

  • Covered time entries (Included, Contingent) are not transferred to weclapp.
  • Time entries at the contract hourly rate or “Billable” go into the weclapp order as usual.
  • When creating a contract, you can enter an existing weclapp invoice in the step “Invoice number (optional)” — its items are taken over into the contract.

Search