Skip to main content

Contracts

This document explains what a contract is, how its customer, currency, payment terms, and invoicing config work, what a line item is and how its settings change over time, and how a contract produces invoices.
A contract belongs to one customer and charges in one currency for its contract duration. A payment term sets when its invoices are due. The invoicing config decides where an increase to an approved period goes. Each line item charges for one product within the contract duration. The pricing, billing, quantity, discounts, and anchor dates of a line item each change on their own dates, as versions. Minimum commitments set the least that the customer pays, on one line item or across the contract. Before publication, the invoice preview shows the invoices that the contract would produce. After publication, the active contract produces invoices. Invoice regeneration recalculates them when the settings of the contract change.

Contracts: what you agree with a customer

A contract is an agreement that records what a customer buys from you, at what price, and for how long. A contract has the following properties:

Draft and active contracts

A draft contract is a contract that you are still preparing. A draft contract does not produce invoices. An active contract is a contract that you have published. An active contract produces invoices. Publishing a contract saves it and then activates it. A contract needs at least one line item. A product can appear on only one line item of a contract. Activation also requires complete tax settings for every taxed line item. The tax configuration of the business entity of the customer can therefore affect activation. Zenskar refuses to activate a contract when a served country of the business entity uses a third-party tax engine that is not connected. For the same reason, Zenskar refuses to save changes to such an active contract, and it cannot calculate the invoice preview. See Tax configuration.

Create a contract

This guide shows how to create a contract for a customer.

Save and publish a contract

This guide shows how to save a draft contract or publish it.

Customers and currencies

Every contract belongs to one customer. The customer cannot change after you create the contract. When you choose a customer for a new contract, Zenskar sets the currency to USD and names the contract after the customer, for example Acme Corp — Contract. You can change both before you save. The currency of a contract decides which products and pricing presets the contract can use. A contract offers only the pricing presets in its own currency. The currency can be USD, INR, EUR, GBP, RUB, or BRL. The currency of a draft contract can change. If the contract already has line items, Zenskar asks you to confirm the change. Zenskar removes the line items when you save the contract details. If you switch back to the previous currency before you save, Zenskar restores the line items. The currency of an active contract cannot change.

Payment terms: when invoices are due

A contract has a payment term, which sets when its invoices are due. The payment term can change from a chosen date.

Payment terms

This page explains how a payment term sets the due date of each invoice, and how it changes over time.

Invoicing configs: increases after approval

An invoicing config is the setting that decides how Zenskar invoices an increase to a period whose invoice is already approved. A contract has one invoicing config. By default, it covers the whole contract duration. The invoicing config cannot change after the contract is published. An increase happens when a change to the contract raises the charge for a period that is already invoiced and approved. Zenskar never changes the approved invoice. The invoicing config decides where the increase goes instead: For example, January is invoiced at $100, and the invoice is approved. A later change raises January to $120. With the default, Zenskar creates a separate $20 invoice dated January. With the other option, the $20 goes on the February invoice.

Set the invoicing config

This guide shows how to choose where an increase to an approved period goes.

Line items: what the customer buys

A line item is the part of a contract that charges for one product. Each line item uses one of the pricing presets of its product. A product can appear on only one line item of a contract. When you add a product to a contract, you also pick one of its pricing presets. The contract offers only the pricing presets in its own currency. When a product has several pricing presets in that currency, the contract marks the default pricing preset. The line-item duration is the period during which a line item charges for its product. A new line item starts with the contract duration. The line-item duration can be shorter. It must stay within the contract duration.

Line-item timelines

A contract can charge for products that start, stop, and change at different times. The contract duration sets the outer limits. Each line item has its own duration within those limits. Each of its settings can change on its own dates. A version is a setting of a line item that applies to one range of dates within the line-item duration. A change to a setting during the line-item duration creates a new version from the date of the change. The pricing versions of a line item must together cover the whole line-item duration, without gaps or overlaps. The billing versions and the quantity versions must cover each pricing version completely. Their dates can change independently of the pricing versions. For example, a 12-month contract charges for seats from the start, and for priority support from April. The price of seats rises in July. The customer moves from 20 to 25 seats in April. The price of seats changes in July. The quantity changes in April. The billing does not change. Each setting changes on its own dates. Each stays within the line-item duration. A setting that covers only part of a pricing version is not valid. For example, if the billing of seats stops at the end of September while the price of USD 22 runs to December, Zenskar rejects the contract. Settings that apply to the whole agreement stay at the contract level: the customer, the currency, the payment terms, the invoicing config, and minimum commitments across products. A line item has more settings: its pricing, billing, quantity, minimum commitments, discounts, and anchor dates. Each has its own page. See Line-item parts.

Add products to a contract

This guide shows how to add products to a contract as line items.

Invoices: what a contract produces

An invoice preview is a calculation of the invoices that a contract would produce with its current settings, shown before you save or publish. The invoice preview updates as the contract changes. It needs a customer, a currency, a contract duration whose start date is before its end date, and at least one line item. A draft contract produces no invoices. An active contract keeps a list of the invoices that it has produced. Invoice regeneration is the recalculation of the draft and upcoming invoices of an active contract after its settings change. When you save an active contract, Zenskar starts invoice regeneration in the background. Saving a draft contract does not start it. Invoice regeneration can also start manually. Only one invoice regeneration runs for a contract at a time. A second request follows the run that is already in progress. Invoice regeneration recalculates the draft and upcoming invoices, together with the charges that they are built from. An increase to a period whose invoice is already approved follows the invoicing config of the contract.

Preview the invoices of a contract

This guide shows how to preview, view, and regenerate the invoices of a contract.

Line-item parts

Each part of a line item has its own page:

Pricing

This page explains the pricing preset that the line item charges with, how the pricing changes during the line item, and price overrides.

Billing

This page explains how often, and when, Zenskar invoices the line item. If the pricing preset has no billing setting, the line item starts with monthly billing, prepaid.

Quantity

This page explains how many units the line item charges for. If the pricing preset has no quantity setting, the line item starts with a fixed quantity of 1.

Minimum commitments

This page explains the least that the customer pays for the line item, or across the contract.

Discounts

This page explains the reductions to the charge of the line item.

Anchor dates

This page explains the dates that the billing of the line item aligns to.