Skip to content

Contract

Contract

Contract details

Contract

  • External party: either a circuit provider or a contract service provider. Choose the type, then search the provider by typing part of its name; only the providers you may view are offered.
  • Invoice frequency : The number of month that each invoice covers. It is used to propose the period of a new invoice.
  • Parent: Contrats can be arranged in a parent / child hierarchie.
  • Billable: whether invoices are issued for this contract (default: yes). The lines of a non-billable contract are invoiced through its closest billable parent. The flag cannot change once the contract, one of its parents or one of its children has invoices, or once an invoice line references one of its lines.
  • Currency: contract lines and invoices of the contract use the same currency. The currency cannot change once the contract, or one of its non-billable descendants, has invoices (or invoice lines referencing their lines); otherwise its contract lines and its non-billable descendants of the same currency, with their lines, follow the new currency. A non-billable child must have the currency of its parent.
  • Deleting a contract deletes its lines and child contracts; it is refused while its lines, or those of its child contracts, are on posted invoices.

What a contract bills for is described by its contract lines.

Finding contracts by their external party

You remember the supplier's name, not its number. Type part of the name of a service provider or a circuit provider in the search box of the contract list: the Active contracts whose external party's name contains the text are listed, together with those that match on their own name, external reference or comments. A provider you rename is found under its new name at once.

The contract filter panel has an External party name field in the Parties section, with the usual modifiers (is, contains, is not, ...), which also works in the address (?external_party_name__ic=acme), in the REST API and in GraphQL (see API). Unlike the search box, the filter does not restrict the status; combine it with the Status filter if you need to. Global (NetBox-wide) search does not look at the external party's name.

Contract types and service providers

  • Contract types are NetBox organizational objects: name, slug, description (up to 200 characters), color, comments and owner. The slug can be left empty in the form, the import and the REST API: it is then derived from the name (support-licences for "Support & Licences", with -2, -3, ... when it is taken).
  • Service providers are NetBox primary objects: name, slug, description, portal URL, comments, contacts and owner.
  • The owner of both is NetBox's owner (Admin → Owners), shown at the top of their pages, and editable in bulk, importable (owner column) and filterable like on core objects.
  • Upgrade to 2.5.0: each existing contract type gets a slug derived from its name. A description longer than 200 characters is shortened at a word boundary (ending with "…") and its full text is kept at the top of the type's comments; the migration prints each contract type it changed this way, and each slug it had to make unique.

Values

The contract page shows values computed from the contract lines:

  • Total contract value: the total value of its lines, "Not available" when a recurring line has no end date on an open-ended contract.
  • Yearly value: the twelve-month value of its recurring lines.
  • Yearly billable value: the yearly value of the lines invoiced under this contract, which are its own lines and those of its non-billable descendants (stopping at any billable child). It is zero for a non-billable contract.

Contract page

The contract page is built from NetBox's standard panels, like core object pages. Below the contract details and values, it lists the contract's lines, assignments, child contracts (when there are any) and invoices. These tables are the tables of the corresponding lists, filtered to the contract: use Configure Table on a list (for example the contract line list) to choose the columns shown, and the same choice applies on the contract page. In a contract line table, a locked line offers no Delete button, and a line that can be amended offers Amend.

Deprecated fields

The monthly, yearly and non-recurring cost fields (mrc, yrc, nrc) are replaced by contract lines. The upgrade to version 2.5.0 converts them into contract lines. They are kept, marked as deprecated, and hidden by default in the contract form, detail page and tables; set the plugin setting show_deprecated_fields to True to show them (on the contract page, in a Deprecated costs panel). They stay available in the bulk import and in the REST API.

Linked objects:

Contract linked objects

  • Contract lines: the lines of the contract, with a button to add a new one. The buttons are hidden once the contract has invoices.
  • Assignments: the assignment of a contract to objects is managed from each object's detail view. In the assignment form, choose the object type, then search the object by typing part of its name (no object number to look up); only the objects you may view are offered, and the types offered are those of the supported_models setting. A contract can be assigned to an object only once: assigning it again is refused, in the form, in a CSV import and through the REST API.
  • Invoice templates (kept for reference): the deprecated invoice template of the contract, if any. Shown only when the plugin setting show_deprecated_fields is True; templates remain reachable from the invoice list.