---
title: "Define supplier discount codes"
description: "Before you start To complete the configuration of supplier discounts, you specify discount series for each discount code in the Supplier discounts (AP205000) window. See: The principles of supplier discounts. This window is only available if you have selected the Customer and supplier discounts check box in the Enable/disable functionalities (CS100000) window. See: Enable or disable supplier discounts. Go to the Supplier discount codes (AP204000) window. In the Supplier…"
lang: en
languages:
  en: https://docs.vismasoftware.no/visma-net-erp/help/supplier-ledger/supplier-discounts/about-supplier-discount-codes/define-supplier-discount-codes/index.md
lastmod: 2026-02-23
---

> Documentation index: https://docs.vismasoftware.no/visma-net-erp/help/supplier-ledger/supplier-discounts/about-supplier-discount-codes/llms.txt


# Define supplier discount codes

Last modified February 23, 2026

> Before you start To complete the configuration of supplier discounts, you specify discount series for each discount code in the Supplier discounts (AP205000) window. See: The principles of supplier discounts. This window is only available if you have selected the Customer and supplier discounts check box in the Enable/disable functionalities (CS100000) window. See: Enable or disable supplier discounts. Go to the Supplier discount codes (AP204000) window. In the Supplier…


## Before you start

To complete the configuration of supplier discounts, you specify discount series for each discount code in the [Supplier discounts (AP205000)](https://docs.vismasoftware.no/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-discounts-ap205000/index.md) window. See: [The principles of supplier discounts](https://docs.vismasoftware.no/visma-net-erp/help/supplier-ledger/supplier-discounts/maintain-supplier-discounts-overview/the-principles-of-supplier-discounts/index.md).

This window is only available if you have selected the **Customer and supplier discounts** check box in the [Enable/disable functionalities (CS100000)](https://docs.vismasoftware.no/visma-net-erp/help/common-settings/enable-or-disable-functionalites/enable-disable-functionalities-cs100000/index.md) window. See: [Enable or disable supplier discounts](https://docs.vismasoftware.no/visma-net-erp/help/common-settings/enable-or-disable-functionalites/enable-or-disable-supplier-discounts/index.md).

1. Go to the [Supplier discount codes (AP204000)](https://docs.vismasoftware.no/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-discount-codes-ap204000/index.md) window.
1. In the **Supplier** field, select the supplier you want define discount codes for.
1. On the **Discount codes** tab, click ![icon-add](https://docs.vismasoftware.no/media/visma-net-erp/icon-add.png).
1. In the **Discount code** field, enter a unique code for the supplier discount.
1. In the **Description** field, enter a brief description of the supplier discount.
1. In the **Discount type** field, choose what the discount will apply to:

    + **Line**
    + **Document**
    + **Group**
1. In the **Applicable to** field, the default is that all options are check-marked, but you can remove or add an option by clicking to the left of it. The available choices are:

    + **Item**: The system applies the discount if the document includes specific items.
    + **Item price class**: The discount is applied if the document includes items from a specific item price class.
    + **Location**: The system applies the discount if the document is associated with a specific supplier location.
    + **Item and location**: The system applies the discount if the document includes specific items purchased from specific supplier location.
    + **Unconditional**: The system applies the discount to all documents unconditionally.

    For a document-level discount, there is only one option:

    + **Unconditional**: The system applies the discount to all documents without any conditions.
1. Optional: If you want to exclude the supplier discount from automatic searches for the best available discount, select the **Manual** check box.
1. Optional: Select the check box **Exclude from discountable amount** if you want to exclude the line amount from the base amount for any applicable group or document discount. This option is only available for line-level discounts.
1. Optional: If you want to prevent the application of any additional discounts after the supplier discount, select the **Skip document discounts** check box. Note: This option is only available for group discounts.
1. Optional: Select the **Auto numbering** check box if you want to use automatic numbering to generate IDs for series based on this discount code. The discount code will be used as a prefix for generating series IDs by default, but you can specify a string to be used as a template for automatic numbering in the **Last number** column instead.

When series IDs are auto-numbered, the **Last number** column displays the last series ID in the series. If you enter a string before creating any series, the system uses it as a template for automatic numbering. You can have up to 10 characters, including digits at the end. The final letter separates the string into a prefix and an auto-incrementing integer. If you do not provide a value, the system uses the discount code as a prefix.

1. Click the **Calculation** tab.
1. In the **Apply line discounts to** drop-down list, choose between:

    + **Extended cost**: The system applies the discount to the line amount (to the item's extended cost).
    + **Unit cost**: The system applies the discount to the item's unit cost.

1. Click ![icon-save](https://docs.vismasoftware.no/media/visma-net-erp/icon-save.png).

## What is next?

[Create discount series](https://docs.vismasoftware.no/visma-net-erp/help/supplier-ledger/supplier-discounts/supplier-discount-series/create-discount-series-ap205000/index.md)

<h2>Related pages</h2><h3>Concepts</h3>
<ul><li><a href="/visma-net-erp/help/supplier-ledger/supplier-discounts/maintain-supplier-discounts-overview/index.md">Maintain supplier discounts - overview</a></li><li><a href="/visma-net-erp/help/supplier-ledger/supplier-discounts/about-supplier-discount-codes/index.md">About Supplier discount codes</a></li><li><a href="/visma-net-erp/help/supplier-ledger/supplier-discounts/maintain-supplier-discounts-overview/about-types-of-supplier-discounts/index.md">About types of supplier discounts</a></li>
</ul><h3>Tasks</h3>
<ul><li><a href="/visma-net-erp/help/supplier-ledger/supplier-discounts/about-supplier-discount-codes/apply-discounts-to-extended-cost-or-unit-cost/index.md">Apply discounts to extended cost or unit cost</a></li>
</ul><h3>Windows</h3>
<ul><li><a href="/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-discount-codes-ap204000/index.md">Supplier discount codes (AP204000)</a></li>
</ul>


---

[View this page](https://docs.vismasoftware.no/visma-net-erp/help/supplier-ledger/supplier-discounts/about-supplier-discount-codes/define-supplier-discount-codes/)
