---
id: object/table/5972
type: object
title: Table 5972 "Contract/Service Discount"
summary: Table 5972 "Contract/Service Discount" in Base Application (Microsoft.Service.Contract). 6 fields, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 772ddc93e12ec096b5cfebc331cea1bf8acb7554c3d3f891aebc120f0bd566fb
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Contract/ContractServiceDiscount.Table.al
    title: src/Layers/W1/BaseApp/Service/Contract/ContractServiceDiscount.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5972
name: Contract/Service Discount
namespace: Microsoft.Service.Contract
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 6
  procedures: 2
  events: 1
  subscribers: 0
relations:
  out: 6
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 1
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5972 "Contract/Service Discount"

> Table 5972 "Contract/Service Discount" in Base Application (Microsoft.Service.Contract). 6 fields, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC28.

Base Application · Microsoft.Service.Contract · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Service/Contract/ContractServiceDiscount.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Contract/Service Discount |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Contract Type | Enum "Service Contract Type" | — | enum [Enum 5965 "Service Contract Type"](../enum/5965.md) |
| 2 | Contract No. | Code[20] | — | TableRelation [Table 5965 "Service Contract Header"](../table/5965.md), [Table 5968 "Service Contract Template"](../table/5968.md) (if ("Contract Type" = const(Template)) "Service Contract Template"."No." else if ("Contract Type" = const(Contract)) "Service Contract Header"."Contract No." where("Contract Type" = const(Contract)) else if ("Contract Type" = const(Quote)) "Service Contract Header"."Contract No." where("Contract Typ...) |
| 4 | Type | Enum "Service Contract Discount Type" | Specifies the type of the contract/service discount. | enum [Enum 5973 "Service Contract Discount Type"](../enum/5973.md) |
| 5 | No. | Code[20] | Specifies the number of the involved entry or record, according to the specified number series. | TableRelation [Table 152 "Resource Group"](../table/152.md), [Table 5904 "Service Item Group"](../table/5904.md), [Table 5905 "Service Cost"](../table/5905.md) (if (Type = const("Service Item Group")) "Service Item Group".Code else if (Type = const("Resource Group")) "Resource Group"."No." else if (Type = const(Cost)) "Service Cost".Code) |
| 6 | Starting Date | Date | Specifies the date when the discount becomes applicable to the contract or quote. |  |
| 7 | Discount % | Decimal | Specifies the discount percentage. |  |

## Keys

- Key1: Contract Type, Contract No., Type, No., Starting Date (clustered)

## Events published

- `OnBeforeVerifyContractOpen(var ContractServiceDiscount: Record "Contract/Service Discount"; var IsHandled: Boolean)` (integration)

## Trigger event subscribers

- OnBeforeInsertEvent: [Codeunit 5999 "Service Experience Tier"](../codeunit/5999.md) BlockInsertContractServiceDiscount

## Procedures

1 local procedures, no public ones.

## Triggers

OnDelete, OnInsert, OnModify, OnRename

## Relations

- lookup page [Page 6058 "Contract/Service Discounts"](../page/6058.md)
- No.: TableRelation [Table 152 "Resource Group"](../table/152.md) (conditional)
- No.: TableRelation [Table 5904 "Service Item Group"](../table/5904.md) (conditional)
- No.: TableRelation [Table 5905 "Service Cost"](../table/5905.md) (conditional)
- Contract No.: TableRelation [Table 5965 "Service Contract Header"](../table/5965.md) (conditional)
- Contract No.: TableRelation [Table 5968 "Service Contract Template"](../table/5968.md) (conditional)

## Pages and codeunits on this table

- [Page 6058 "Contract/Service Discounts"](../page/6058.md) (source table)
- [Codeunit 5941 "ContractDiscount-Find"](../codeunit/5941.md) (codeunit runs on it)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC28

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Contract/Service Discount")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
