---
id: object/table/8066
type: object
title: Table 8066 "Cust. Sub. Contract Deferral"
summary: Table 8066 "Cust. Sub. Contract Deferral" in Subscription Billing (Microsoft.SubscriptionBilling). 28 fields, 4 public procedures, 1 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - subscription billing
versions:
  introduced: "29"
  last_changed: null
  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: 248336a7f676e8db8179019f4894230fe985f9f64e8e57d83033ddd3773d69a2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Deferrals/Tables/CustSubContractDeferral.Table.al
    title: src/Apps/W1/Subscription Billing/app/Deferrals/Tables/CustSubContractDeferral.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/SRB/working-with-contracts/contract-deferrals
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/sales/subscription-billing/contracts
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9905
object_type: table
object_id: 8066
name: Cust. Sub. Contract Deferral
caption: Customer Subscription Contract Deferral
namespace: Microsoft.SubscriptionBilling
app: Subscription Billing
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 28
  procedures: 5
  events: 1
  subscribers: 0
relations:
  out: 13
  referenced_by: 0
  pages: 2
  extended_by: 0
  event_subscribers: 2
  calls: 0
  called_by: 0
  implements: 0
---

# Table 8066 "Cust. Sub. Contract Deferral"

> Table 8066 "Cust. Sub. Contract Deferral" in Subscription Billing (Microsoft.SubscriptionBilling). 28 fields, 4 public procedures, 1 events. Introduced in BC29, still in BC30.

Subscription Billing · Microsoft.SubscriptionBilling · captioned "Customer Subscription Contract Deferral" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Deferrals/Tables/CustSubContractDeferral.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 8079 "Customer Contract Deferrals"](../page/8079.md) (1 Learn page).

## Properties

| Property | Value |
|---|---|
| Caption | Customer Subscription Contract Deferral |
| DataClassification | CustomerContent |
| LookupPageId | Customer Contract Deferrals |
| DrillDownPageId | Customer Contract Deferrals |
| Permissions | tabledata "Sales Invoice Line" = r, tabledata "Sales Cr.Memo Line" = r |

## 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 | Entry No. | Integer | Specifies the number of the deferral that was assigned when it was created from the specified number series. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> | AutoIncrement |
| 2 | Subscription Contract No. | Code[20] | Specifies the number of the related contract. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> | TableRelation [Table 8052 "Customer Subscription Contract"](../table/8052.md) ("Customer Subscription Contract"."No.") |
| 3 | Document Type | Enum "Rec. Billing Document Type" | Specifies the document type used to create the deferral. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> | enum [Enum 8054 "Rec. Billing Document Type"](../enum/8054.md) |
| 4 | Document No. | Code[20] | Specifies the document number used to create the deferral. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 5 | Subscription Contract Type | Code[10] | Specifies the Subscription Contract Type of the contract for which the deferral was created. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> | TableRelation [Table 8053 "Subscription Contract Type"](../table/8053.md) ("Subscription Contract Type".Code) |
| 6 | Released | Boolean | Specifies whether the deferral has been released. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 7 | Posting Date | Date | Specifies the posting date of the deferral. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 8 | Amount | Decimal | Specifies the amount of the deferral. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 9 | Customer No. | Code[20] | Specifies the number of the customer (contractor) for which the deferral was generated. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> | TableRelation [Table 18 "Customer"](../table/18.md) |
| 10 | User ID | Code[50] | Specifies the ID of the user who generated the deferral (e.g. for use in the change log). <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> | TableRelation [Table 91 "User Setup"](../table/91.md) (User Setup); DataClassification EndUserIdentifiableInformation |
| 13 | Discount Amount | Decimal | Specifies the discount amount of the deferral. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 14 | Deferral Base Amount | Decimal | Specifies the amount that is the base amount for deferral. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 15 | Discount % | Decimal | Specifies the percentage for the deferral discount. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 16 | Bill-to Customer No. | Code[20] | Specifies the number of the customer (invoice recipient) for which the deferral was created. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> | TableRelation [Table 18 "Customer"](../table/18.md) |
| 17 | Document Line No. | Integer | — |  |
| 18 | Document Posting Date | Date | Specifies the posting date of the document used to create the deferral. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> | not editable |
| 19 | Release Posting Date | Date | Specifies the posting date on which the deferral was released. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 20 | G/L Entry No. | Integer | Specifies the number of the G/L item with which the deferral was released. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> | TableRelation [Table 17 "G/L Entry"](../table/17.md) (G/L Entry) |
| 21 | Number of Days | Integer | Specifies the number of days belonging to the deferral. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 22 | Subscription Contract Line No. | Integer | — | TableRelation [Table 8062 "Cust. Sub. Contract Line"](../table/8062.md) ("Cust. Sub. Contract Line"."Line No." where("Subscription Contract No." = field("Subscription Contract No."))) |
| 23 | Subscription Description | Text[100] | Specifies the description of the Subscription that was invoiced via the sales line. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 24 | Subscription Line Description | Text[100] | Specifies the description of the Subscription Line that was invoiced via the sales line. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 25 | Discount | Boolean | Specifies whether the Subscription Line is used as a basis for periodic invoicing or discounts. <small>via [Page 8079 "Customer Contract Deferrals"](../page/8079.md)</small> |  |
| 26 | Currency Code | Code[10] | — |  |
| 27 | G/L Account No. | Code[20] | Specifies the G/L account selected on the Subscription Contract line. If it is filled, releasing the deferral posts to this account instead of the Customer Subscription Contract Account from the General Posting Setup. | TableRelation [Table 15 "G/L Account"](../table/15.md) (G/L Account); not editable |
| 74 | Gen. Bus. Posting Group | Code[20] | Specifies the general business posting group. | TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md) (Gen. Business Posting Group) |
| 75 | Gen. Prod. Posting Group | Code[20] | Specifies the general product posting group. | TableRelation [Table 251 "Gen. Product Posting Group"](../table/251.md) (Gen. Product Posting Group) |
| 480 | Dimension Set ID | Integer | — | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |

## Keys

- PK: Entry No. (clustered)
- SK1: Subscription Contract No.

## Events published

- `OnAfterInitFromSalesLine(var CustSubContractDeferral: Record "Cust. Sub. Contract Deferral"; SalesLine: Record "Sales Line"; var Sign: Integer)` (integration)

## Trigger event subscribers

- OnAfterInsertEvent: [Codeunit 8077 "Deferral Post. Preview Handler"](../codeunit/8077.md) OnInsertCustContractDeferral
- OnAfterModifyEvent: [Codeunit 8077 "Deferral Post. Preview Handler"](../codeunit/8077.md) OnModifyCustContractDeferral

## Procedures

- `InitFromSalesLine(SalesLine: Record "Sales Line"; var Sign: Integer)` (internal)
- `ShowDimensions()` (internal)
- `FilterOnDocumentTypeAndDocumentNo(RecurringBillingDocumentType: Enum "Rec. Billing Document Type"; DocumentNo: Code[20])` (internal)
- `GetDocumentPostingGroups(var GenBusPostingGroup: Code[20]; var GenProdPostingGroup: Code[20]): Boolean` (internal)

## Relations

- drill-down page [Page 8079 "Customer Contract Deferrals"](../page/8079.md)
- lookup page [Page 8079 "Customer Contract Deferrals"](../page/8079.md)
- G/L Account No.: TableRelation [Table 15 "G/L Account"](../table/15.md)
- G/L Entry No.: TableRelation [Table 17 "G/L Entry"](../table/17.md)
- Bill-to Customer No.: TableRelation [Table 18 "Customer"](../table/18.md)
- Customer No.: TableRelation [Table 18 "Customer"](../table/18.md)
- Gen. Bus. Posting Group: TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md)
- Gen. Prod. Posting Group: TableRelation [Table 251 "Gen. Product Posting Group"](../table/251.md)
- Dimension Set ID: TableRelation [Table 480 "Dimension Set Entry"](../table/480.md)
- Subscription Contract No.: TableRelation [Table 8052 "Customer Subscription Contract"](../table/8052.md)
- Subscription Contract Type: TableRelation [Table 8053 "Subscription Contract Type"](../table/8053.md)
- Subscription Contract Line No.: TableRelation [Table 8062 "Cust. Sub. Contract Line"](../table/8062.md)
- User ID: TableRelation [Table 91 "User Setup"](../table/91.md)

## Pages and codeunits on this table

- [Page 8046 "Cust. Contract Deferral API"](../page/8046.md) (source table)
- [Page 8079 "Customer Contract Deferrals"](../page/8079.md) (source table)

## Recent changes

- 2026-09-04 [#9905 [Bug][SubscriptionBilling] Contract lines of type G/L Account never post to the selected G/L account](../../changes/bcapps/9905.md) (main, BC30, fix)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

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: "Cust. Sub. Contract Deferral")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
