---
id: object/codeunit/8068
type: object
title: Codeunit 8068 "Vendor Deferrals Mngmt."
summary: Codeunit 8068 "Vendor Deferrals Mngmt." in Subscription Billing (Microsoft.SubscriptionBilling). 1 public procedures, 1 events, 9 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - 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: 5698e38d2c6b247dfd946eefadf275d7e4553990385de741cdc1ef50cded3262
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Deferrals/Codeunits/VendorDeferralsMngmt.Codeunit.al
    title: src/Apps/W1/Subscription Billing/app/Deferrals/Codeunits/VendorDeferralsMngmt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10347
    - change/bcapps/9905
object_type: codeunit
object_id: 8068
name: Vendor Deferrals Mngmt.
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: 0
  procedures: 18
  events: 1
  subscribers: 9
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 8068 "Vendor Deferrals Mngmt."

> Codeunit 8068 "Vendor Deferrals Mngmt." in Subscription Billing (Microsoft.SubscriptionBilling). 1 public procedures, 1 events, 9 event subscribers. Introduced in BC29, still in BC30.

Subscription Billing · Microsoft.SubscriptionBilling · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Subscription%20Billing/app/Deferrals/Codeunits/VendorDeferralsMngmt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| SingleInstance | true |
| Permissions | tabledata "Purch. Inv. Line" = r |

## Events published

- `OnBeforeInsertVendorContractDeferral(var VendSubContractDeferral: Record "Vend. Sub. Contract Deferral"; PurchaseLine: Record "Purchase Line"; PeriodNo: Integer; NumberOfPeriods: Integer)` (integration)

## Event subscriptions

- OnPrepareLineOnBeforeSetAccount subscribes to Codeunit "Purch. Post Invoice Events" OnPrepareLineOnBeforeSetAccount
- SetVendorContractDeferralLinePosting subscribes to Codeunit "Purch. Post Invoice Events" OnAfterInitTotalAmounts
- SetLineDiscAccountForVendorContractDeferrals subscribes to Table "General Posting Setup" OnBeforeGetPurchLineDiscAccount
- InsertVendorDeferralsFromPurchaseInvoiceOnBeforePurchInvLineInsert subscribes to Codeunit "Purch.-Post" OnBeforePurchInvLineInsert
- InsertVendorDeferralsFromPurchaseCrMemo subscribes to Codeunit "Purch.-Post" OnAfterPurchCrMemoLineInsert
- OnAfterFindEntries subscribes to Page "Navigate" OnAfterNavigateFindRecords
- OnBeforeShowRecords subscribes to Page "Navigate" OnBeforeShowRecords
- SetContractNo subscribes to Codeunit "Gen. Jnl.-Post Line" OnBeforePostGenJnlLine
- GetEntryNo subscribes to Codeunit "Gen. Jnl.-Post Line" OnAfterGLFinishPosting

## Procedures

- `SetDeferralNo(NewDeferralNo: Integer)` (internal)

Plus 7 local procedures.

## Recent changes

- 2026-10-03 [#10347 [Bug][Subscription Billing] Wrong number of days on vendor contract deferrals when the billing period lies within a single calendar month](../../changes/bcapps/10347.md) (main, BC30, fix)
- 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: "codeunit", object_name: "Vendor Deferrals Mngmt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
