---
title: "Codeunit 131303 Library - Pmt Disc Setup"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131303-library-pmt-disc-setup/
type: codeunit
id: 131303
name: "Library - Pmt Disc Setup"
app: "Application Test Library"
versions: "28-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/131303-library-pmt-disc-setup/source/"
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 131303 Library - Pmt Disc Setup

JOP-AL, https://jonas-paprotka.de/ref/codeunit/131303-library-pmt-disc-setup/

| | |
| --- | --- |
| App | Application Test Library |
| Versions | 28-29 |
| Minors | W1 28.0-29.0; DE 28.0-29.0; US 28.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/131303-library-pmt-disc-setup/editions.json) |
| Source file | LibraryPmtDiscSetup.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ClearAdjustPmtDiscInVATSetup | () | - | public | 28-29 | - | - |
| GetPmtDiscGracePeriod | () | Text | public | 28-29 | - | - |
| GetPmtTolerancePct | () | Decimal | public | 28-29 | - | - |
| GetPaymentTermsDiscountPct | (PaymentTermsCode: Code[10]) | Decimal | public | 28-29 | - | - |
| GetPaymentTermsDiscountDate | (PaymentTermsCode: Code[10]) | Date | public | 28-29 | - | - |
| SetAdjustForPaymentDisc | (AdjustForPaymentDisc: Boolean) | - | public | 28-29 | - | - |
| SetPmtDiscExclVAT | (PmtDiscExclVAT: Boolean) | - | public | 28-29 | - | - |
| SetPmtDiscGracePeriod | (GracePeriod: DateFormula) | - | public | 28-29 | - | - |
| SetPmtDiscGracePeriodByText | (DateFormulaText: Text) | - | public | 28-29 | - | - |
| SetPmtTolerance | (PaymentTolerancePct: Decimal) | - | public | 28-29 | - | - |
| SetPmtToleranceWarning | (PmtToleranceWarning: Boolean) | - | public | 28-29 | - | - |
| SetPmtDiscToleranceWarning | (PmtDiscToleranceWarning: Boolean) | - | public | 28-29 | - | - |

## Source

Symbols: Microsoft.ApplicationTestLibrary.symbols.d852d5d2-a39d-4179-baeb-f99a19e32510, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
