Table 5972 "Contract/Service Discount"
Base Application · Microsoft.Service.Contract
Across versions
- BC23present
- BC24declaration changed
- BC25-27unchanged
- BC284 fields changed
- BC29-30unchanged
Neighbourhood 8 connected objects and pages
Base Application · Microsoft.Service.Contract · BC23-30 · source at ea08af5e · 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” |
| 2 | Contract No. | Code[20] | — | TableRelation Table 5965 “Service Contract Header”, Table 5968 “Service Contract Template” (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 Δ BC28 | Enum “Service Contract Discount Type” | Specifies the type of the contract/service discount. | enum Enum 5973 “Service Contract Discount Type” |
| 5 | No. Δ BC28 | Code[20] | Specifies the number of the involved entry or record, according to the specified number series. | TableRelation Table 152 “Resource Group”, Table 5904 “Service Item Group”, Table 5905 “Service Cost” (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 Δ BC28 | Date | Specifies the date when the discount becomes applicable to the contract or quote. | |
| 7 | Discount % Δ BC28 | 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” BlockInsertContractServiceDiscount
Procedures
1 local procedures, no public ones.
Triggers
OnDelete, OnInsert, OnModify, OnRename
Relations
- lookup page Page 6058 “Contract/Service Discounts”
- No.: TableRelation Table 152 “Resource Group” (conditional)
- No.: TableRelation Table 5904 “Service Item Group” (conditional)
- No.: TableRelation Table 5905 “Service Cost” (conditional)
- Contract No.: TableRelation Table 5965 “Service Contract Header” (conditional)
- Contract No.: TableRelation Table 5968 “Service Contract Template” (conditional)
Pages and codeunits on this table
- Page 6058 “Contract/Service Discounts” (source table)
- Codeunit 5941 “ContractDiscount-Find” (codeunit runs on it)
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.