About Supplier discount codes
/visma-net-erp/help/supplier-ledger/supplier-discounts/about-supplier-discount-codes
section
You use the Supplier discount codes (AP204000) window to add, edit, view, and delete the supplier discount codes defined in your company.
2026-02-19T17:09:06+01:00
# About Supplier discount codes
You use the Supplier discount codes (AP204000) window to add, edit, view, and delete the supplier discount codes defined in your company.
For more information: [Supplier discount codes (AP204000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-discount-codes-ap204000/).
## Introduction
You use the [Supplier discount codes (AP204000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-discount-codes-ap204000/) window to add, edit, view, and delete the supplier discount codes defined in your company.
To complete the configuration of supplier discounts, you specify discount series for each discount code in the [Supplier discounts (AP205000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-discounts-ap205000/) window. See: [The principles of supplier discounts](/visma-net-erp/help/supplier-ledger/supplier-discounts/maintain-supplier-discounts-overview/the-principles-of-supplier-discounts/).
## The order in which Visma Net applies supplier discounts
When you save a document, supplier discounts of all levels are applied to the document automatically, except for the discounts marked as manual.
## Automatic discount application order
Automatic discounts are applied in the following order, without needing to specify:
Line-level
: Applied to each line of the document. The system selects the best applicable discount for each line when processing purchase orders or invoices.
Group-level
: Applied to multiple lines of the document. The system identifies and applies all applicable group discounts.
Document-level
: Applied to the document's total amount. Only one best document-level discount is applied, which is why group-level discounts are often used as document-level discounts.
Several options affect the discount application order and calculation:
Exclude from discountable amount
: This option, available for line-level discounts, allows you to exclude the line-level discount amount from higher-level discounts (group and document). For example, you can exclude items with a 75% clearance discount from the basis for a 5% document discount on orders over 2000€.
Skip document discount
: This option, available for group-level discounts, prevents the application of a document-level discount when a group-level discount significantly reduces the document total.
## Understanding the interaction between supplier discounts and prices
When a supplier provides prices for all customers along with discounts, you can manage both supplier prices and discounts, calculating the discounts based on the discountable amounts derived from the prices.
For prices offered specifically to your company, use the [Supplier prices (AP202000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-prices-ap202000/) and [Supplier inventory (PO201000)](/visma-net-erp/help/purchases/purchases-windows/supplier-inventory-po201000/) windows to manage supplier prices, without configuring supplier discounts.
With volume pricing enabled, the supplier prices in the [Supplier inventory (PO201000)](/visma-net-erp/help/purchases/purchases-windows/supplier-inventory-po201000/) window will automatically update when the "zero" tier prices (with 0 quantity) are changed in the [Supplier prices (AP202000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-prices-ap202000/) window.
## About applying extra manual discounts
You can apply manual discounts (without discount codes) when all automatic discounts have been applied.
You can specify a manual discount for specific document lines on the **Document details** tab in these windows:
+ [Purchase invoices (AP301000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/purchase-invoices-ap301000/)
+ [Purchase orders (PO301000)](/visma-net-erp/help/purchases/purchases-windows/purchase-orders-po301000/)
To apply a manual discount, you can enter either a discount percent or a discount amount. The system automatically recalculates other related values.
## About automatic and manual discounts
If you have chosen the **Manual** option in the [Supplier discount codes (AP204000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-discount-codes-ap204000/) window, the discount will not be automatically applied or considered the best available when saving the document. You can use manual discounts for purposes such as rebates or coupons. While automatic discounts at all levels are applied upon saving the document, you can apply a manual discount to documents in one of the following windows:
+ [Purchase invoices (AP301000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/purchase-invoices-ap301000/)
+ [Purchase orders (PO301000)](/visma-net-erp/help/purchases/purchases-windows/purchase-orders-po301000/)
To apply a manual line-level discount to a document, go to the **Document details** tab and select the discount code for the specific line. Once the code is selected and the discount is applied, the system will recalculate any other discounts accordingly.
For manual group-level or document-level discounts, navigate to the **Discount details** tab and select each discount code from the table. The system will apply the discount if the conditions match. Note that if you modify line quantities while adding manual discounts, the system will recalculate them, but they will not be replaced by automatic discounts even if those offer a greater discount amount.
You can always view the details of all discounts that were applied to a document on the **Discount details** tab in the window mentioned above.
## About refreshing discounts and prices for existing documents
If you are aware of updated prices, discounts, or newly defined discounts in the system for documents that have been on hold, you can update the discounts accordingly.
To update prices and discounts, select the **Recalculate prices** action in the appropriate windows. Additionally, you can choose to replace manual discounts with automatic discounts to see if this change increases the total discount. If the result is unsatisfactory, you can revert to using manual discounts.
Related pages
Concepts
Tasks
Windows
Define supplier discount codes
/visma-net-erp/help/supplier-ledger/supplier-discounts/about-supplier-discount-codes/define-supplier-discount-codes
section
2026-02-19T17:09:06+01:00
# Define supplier discount codes
## Before you start
To complete the configuration of supplier discounts, you specify discount series for each discount code in the [Supplier discounts (AP205000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-discounts-ap205000/) window. See: [The principles of supplier discounts](/visma-net-erp/help/supplier-ledger/supplier-discounts/maintain-supplier-discounts-overview/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)](/visma-net-erp/help/common-settings/enable-or-disable-functionalites/enable-disable-functionalities-cs100000/) window. See: [Enable or disable supplier discounts](/visma-net-erp/help/common-settings/enable-or-disable-functionalites/enable-or-disable-supplier-discounts/).
1. Go to the [Supplier discount codes (AP204000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-discount-codes-ap204000/) window.
1. In the **Supplier** field, select the supplier you want define discount codes for.
1. On the **Discount codes** tab, click .
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 .
## What is next?
[Create discount series](/visma-net-erp/help/supplier-ledger/supplier-discounts/supplier-discount-series/create-discount-series-ap205000/)
Related pages
Concepts
Tasks
Windows
Apply discounts to extended cost or unit cost
/visma-net-erp/help/supplier-ledger/supplier-discounts/about-supplier-discount-codes/apply-discounts-to-extended-cost-or-unit-cost
section
2026-02-19T17:09:06+01:00
# Apply discounts to extended cost or unit cost
1. Go to the [Supplier discount codes (AP204000)](/visma-net-erp/help/supplier-ledger/supplier-ledger-windows/supplier-discount-codes-ap204000/) window.
1. Go to the **Calculation** tab.
1. In the **Apply line discounts to** drop-down list, select **Extended cost** or **Unit cost**.
1. Click .