---
id: change/bcapps/9905
type: change
title: "#9905 [Bug][SubscriptionBilling] Contract lines of type G/L Account never post to the selected G/L account"
summary: Contract lines of type G/L Account now post to the G/L account specified on the line instead of the default account from General Posting Setup, both for immediate posting and deferral release scenarios.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit customer deferrals mngmt.
  - codeunit vendor deferrals mngmt.
  - page customer contract deferrals
  - page vendor contract deferrals
  - report contract deferrals release
  - table cust. sub. contract deferral
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:06:08.033Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 32df311cae812ef6ee36e39d6a623c784747bd45
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9905
    title: "microsoft/BCApps#9905: [Bug][SubscriptionBilling] Contract lines of type G/L Account never post to the selected G/L account"
    date: "2026-09-04"
    commit: 32df311cae812ef6ee36e39d6a623c784747bd45
    t: null
    quote: contract lines of type "G/L Account" without deferrals now post to the G/L account selected on the line
links:
  learn: []
  objects:
    - object/codeunit/8067
    - object/codeunit/8068
    - object/page/8079
    - object/page/8081
    - object/report/8051
    - object/table/8066
    - object/table/8072
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9905
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9905
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-04T14:37:16Z"
author: miljance
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: Apps (W1)"
  - From Fork
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 10
  additions: 308
  deletions: 31
  al: 7
apps:
  - Subscription Billing
objects_touched:
  - key: codeunit/8067
    page: codeunit/8067
    type: codeunit
    id: 8067
    name: Customer Deferrals Mngmt.
    app: Subscription Billing
    status: modified
  - key: codeunit/8068
    page: codeunit/8068
    type: codeunit
    id: 8068
    name: Vendor Deferrals Mngmt.
    app: Subscription Billing
    status: modified
  - key: page/8079
    page: page/8079
    type: page
    id: 8079
    name: Customer Contract Deferrals
    app: Subscription Billing
    status: modified
  - key: page/8081
    page: page/8081
    type: page
    id: 8081
    name: Vendor Contract Deferrals
    app: Subscription Billing
    status: modified
  - key: report/8051
    page: report/8051
    type: report
    id: 8051
    name: Contract Deferrals Release
    app: Subscription Billing
    status: modified
  - key: table/8066
    page: table/8066
    type: table
    id: 8066
    name: Cust. Sub. Contract Deferral
    app: Subscription Billing
    status: modified
  - key: table/8072
    page: table/8072
    type: table
    id: 8072
    name: Vend. Sub. Contract Deferral
    app: Subscription Billing
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues:
  - 9885
work_items:
  - 648281
systems:
  - development
quote: contract lines of type "G/L Account" without deferrals now post to the G/L account selected on the line
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9905 [Bug][SubscriptionBilling] Contract lines of type G/L Account never post to the selected G/L account

> Contract lines of type G/L Account now post to the G/L account specified on the line instead of the default account from General Posting Setup, both for immediate posting and deferral release scenarios.

[Pull request](https://github.com/microsoft/BCApps/pull/9905) · merged into `main` (BC30) on 2026-09-04 by miljance (community contribution) · 10 files (+308 -31), 7 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- G/L Account contract lines bypass the General Posting Setup account lookup and post to the line's selected account
- A new G/L Account No. field on deferral tables stores the account reference from sales/purchase lines
- Deferral release logic posts to the stored account, with fallback to General Posting Setup when not specified
- Added comprehensive tests for both immediate-posting and deferral-release paths
- Schema change is additive only; no breaking changes or upgrade code needed
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 8067 "Customer Deferrals Mngmt."](../../objects/codeunit/8067.md), Subscription Billing: modified
- [Codeunit 8068 "Vendor Deferrals Mngmt."](../../objects/codeunit/8068.md), Subscription Billing: modified
- [Page 8079 "Customer Contract Deferrals"](../../objects/page/8079.md), Subscription Billing: modified
- [Page 8081 "Vendor Contract Deferrals"](../../objects/page/8081.md), Subscription Billing: modified
- [Report 8051 "Contract Deferrals Release"](../../objects/report/8051.md), Subscription Billing: modified
- [Table 8066 "Cust. Sub. Contract Deferral"](../../objects/table/8066.md), Subscription Billing: modified
- [Table 8072 "Vend. Sub. Contract Deferral"](../../objects/table/8072.md), Subscription Billing: modified

## Context

- Fixes: [#9885 [Bug][SubscriptionBilling] Contract lines of type G/L Account never post to the selected G/L account](https://github.com/microsoft/BCApps/issues/9885) (closed)
- Work items: AB#648281
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: development
- From the description: "contract lines of type "G/L Account" without deferrals now post to the G/L account selected on the line"

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
