> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dualentry.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How Contract Discounts Work

> How a contract-level percentage discount flows to invoices and revenue recognition in DualEntry, and how net and gross discount modes post to the GL.

A contract discount is one percentage discount on the whole contract, also called an order-level discount. You enter it once on the contract. DualEntry applies it to every invoice that the contract generates and to the revenue that the contract recognizes. You choose how the discount posts to the general ledger: **net** (spread across the lines) or **gross** (a separate discount line).

## What a contract discount does

A contract discount lowers the total contract price by a percentage. DualEntry applies it after any discount on a single performance obligation. Under ASC 606 and IFRS 15, a discount on the whole contract lowers the transaction price, and DualEntry allocates the discounted price across performance obligations by standalone selling price (SSP). See [Allocations and SSP](https://docs.dualentry.com/accountants/revenue-recognition/allocations-and-ssp.md) for the allocation method.

The discount has these effects on the contract:

* **Invoices**: Every invoice gets the same percentage, whatever the billing frequency. The last invoice takes any rounding difference, so the discount total is exact to the cent.
* **Usage, milestone, and prepaid billing**: These invoices get the percentage too.
* **Revenue recognition**: The schedule recognizes the contract total after the discount.

## Where you set a contract discount

You set the discount on the contract, and every invoice that the contract generates inherits the discount and its mode. You can set the discount in these places:

* **App**: The discount fields are on the **Performance Obligations** step of the contract form. The **Show in totals** discount mode is net treatment, and **Separate discount item line** is gross treatment. For the steps, see [How to Create a Revenue Contract](https://docs.dualentry.com/accountants/revenue-recognition/create-a-contract.md#add-performance-obligations).
* **Public API**: Send `discount_type` as `PERCENTAGE`, `discount_value`, `discount_strategy`, and `discount_item_id` on the contract. `discount_strategy` is `spread_across_lines` (net, the default) or `separate_discount_line` (gross).
* **Accounting Intelligence and MCP**: The `create_contract` tool accepts the discount, and `preview_contract_schedule` shows the discounted billing and revenue before you save.

For gross treatment, the contract needs a discount item with an income account. That income account is the contra-revenue account that receives the discount. In the app, the **Discount Item** list shows only **Discount** type items.

## How net and gross treatment post

Net and gross treatment bill the customer the same amount and recognize the same revenue. They differ in where the discount sits between invoice and recognition. In the examples below, a contract bills $1,000 with a 20% discount, so the customer owes $800. The entries show the net effect. In the **GL Impact** drawer, DualEntry can show the line and the discount as separate debit and credit pairs with the same totals.

### Net treatment

Under net treatment, DualEntry spreads the discount across the invoice lines and does not use a contra-revenue account. Net treatment is the default. The invoice posts the net amount:

* Debit Accounts Receivable \$800
* Credit Deferred Revenue \$800

Revenue recognition releases the net amount:

* Debit Deferred Revenue \$800
* Credit Revenue \$800

### Gross treatment

Under gross treatment, the invoice shows the discount as its own line, and the discount posts to the contra-revenue account of the discount item. The invoice posts the full price to deferred revenue:

* Debit Accounts Receivable \$800
* Debit Discount (contra-revenue) \$200
* Credit Deferred Revenue \$1,000

Revenue recognition releases the full price from deferred revenue, recognizes the net amount, and clears the discount from the contra-revenue account:

* Debit Deferred Revenue \$1,000
* Credit Revenue \$800
* Credit Discount (contra-revenue) \$200

Under both treatments, deferred revenue clears to zero by the end of the contract and revenue totals \$800. Under gross treatment, the contra-revenue account also clears to zero.

On the contract's **Monthly Summary** tab, which appears when contract asset tracking is enabled, gross contracts show a **Discount** column. Over the life of the contract, **Invoiced** minus **Discount** equals **Recognized**. In a single month the two can differ, because billing and recognition run on separate schedules. See [Contract monthly summary](https://docs.dualentry.com/accountants/revenue-recognition/reporting.md#contract-monthly-summary) for the other columns.

## Change orders, terminations, and renewals

A contract discount stays exact when the contract changes. DualEntry recalculates the discount on invoices that are not yet posted or paid, and keeps posted and paid records as they are.

* **Change orders**: The discount applies only to the remaining invoices, and the discount total stays exact to the cent.
* **Early termination**: The customer forfeits the discount on invoices that were not billed yet. Reversals and catch-up adjustments use net values. Under gross treatment, the termination also clears the contra-revenue account.
* **Renewal**: An auto-renewed contract keeps its percentage discount. Milestone obligations on a discounted contract cannot auto-renew.

See [Change Orders, Terminations, and Renewals](https://docs.dualentry.com/accountants/revenue-recognition/change-orders-terminations-renewals.md) for how each event changes the schedule.

## Known limits

Contract discounts have limits on the discount type, the discount scope, the contracts that accept it, the sources that fill it, and the recognition modes that release it:

* DualEntry supports only percentage contract discounts, not fixed amounts.
* A contract has one contract discount. You cannot set a different discount per contract year, product, or period.
* A contract with a contract discount needs an end date, unless every obligation uses usage recognition.
* Every obligation on the contract must generate its own invoices. You cannot combine a contract discount with **Exclude Invoice** or with imported invoice and revenue schedules.
* You cannot add a contract discount to a contract migrated mid-life with a cutover date or accumulated revenue. See [Migrate Mid-Life Contracts](https://docs.dualentry.com/accountants/revenue-recognition/migrate-mid-life-contracts.md).
* CRM deals and contract templates do not fill the contract discount.
* Gross treatment releases the discount at recognition only for contracts in individual recognition mode, not [subledger mode](https://docs.dualentry.com/accountants/revenue-recognition/revenue-subledgers/subledgers.md).
* Revenue recognitions posted before gross treatment released the discount keep their original entries.
* A 100% contract discount has no revenue recognition schedule.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.