---
id: change/bcapps/13442
type: change
title: "#13442 [SCM] Post Inventory Cost to G/L: stop using marks, add clean-up for Post Value Entry to G/L"
summary: Report 1002 now stops using marks to delete processed rows and instead filters by value entry numbers, adds automatic cleanup of stale rows, and introduces a new page and report for managing value entries to post to G/L.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page cost adjustment overview
  - report post inventory cost to g/l
  - table post value entry to g/l
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-11-08T00:58:59.369Z"
  flags: []
generated:
  at: "2026-11-14T00:13:17.671Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 184c24a835a04cee7c319504b02a4042a808dc89
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13442
    title: "microsoft/BCApps#13442: [SCM] Post Inventory Cost to G/L: stop using marks, add clean-up for Post Value Entry to G/L"
    date: "2026-11-06"
    commit: 184c24a835a04cee7c319504b02a4042a808dc89
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/page/5801
    - object/report/1002
    - object/table/5811
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/projects-how-record-job-usage
      title: Record Consumption or Usage of Project Resources and Items
      label: possibly related
      why: touches Report 1002 "Post Inventory Cost to G/L"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/design-details-cost-adjustment
      title: Design details - Cost adjustment
      label: possibly related
      why: Design details on cost adjustment mechanism and value entry to G/L processing.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/finance-how-to-post-inventory-costs-to-the-general-ledger
      title: Reconcile inventory costs with the general ledger
      label: possibly related
      why: Documents Post Inventory Cost to G/L batch job and reconciliation process, central to this change.
      by: model
number: 13442
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13442
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-06T14:38:12Z"
author: alexei-dobriansky
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 6
  additions: 1114
  deletions: 19
  al: 5
apps:
  - Base Application
objects_touched:
  - key: page/5801
    page: page/5801
    type: page
    id: 5801
    name: Cost Adjustment Overview
    app: Base Application
    status: modified
  - key: report/1002
    page: report/1002
    type: report
    id: 1002
    name: Post Inventory Cost to G/L
    app: Base Application
    status: modified
  - key: table/5811
    page: table/5811
    type: table
    id: 5811
    name: Post Value Entry to G/L
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/W1/BaseApp/Inventory/Costing/CleanUpPostValueEntries.Report.al
    status: added
    reason: not-in-snapshot
  - path: src/Layers/W1/BaseApp/Inventory/Costing/PostValueEntriestoGL.Page.al
    status: added
    reason: not-in-snapshot
obsoletions: []
backports:
  - number: 13795
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13795
fixes_issues: []
work_items:
  - 657019
systems:
  - inventory
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13442 [SCM] Post Inventory Cost to G/L: stop using marks, add clean-up for Post Value Entry to G/L

> Report 1002 now stops using marks to delete processed rows and instead filters by value entry numbers, adds automatic cleanup of stale rows, and introduces a new page and report for managing value entries to post to G/L.

[Pull request](https://github.com/microsoft/BCApps/pull/13442) · merged into `main` (BC30) on 2026-11-06 by alexei-dobriansky · 6 files (+1114 -19), 5 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Report 1002 collects processed entries in a temporary table and deletes by filtered ranges instead of using marks, fixing platform issues with row-by-row deletes on large datasets
- Stale rows (fully posted or orphaned entries) are now automatically removed from table 5811 when posting, preventing accumulation that can block future runs
- New page 5813 shows value entries to post to G/L with amounts, accessible from the Inventory Cost Adjustment overview
- New report 5813 allows customers to manually clean up stale rows with a count-only option
- Page 5801 Inventory Cost Adjustment replaces show/hide actions with views and hides obsolete actions
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 5801 "Cost Adjustment Overview"](../../objects/page/5801.md), Base Application: modified
- [Report 1002 "Post Inventory Cost to G/L"](../../objects/report/1002.md), Base Application: modified
- [Table 5811 "Post Value Entry to G/L"](../../objects/table/5811.md), Base Application: modified
- `src/Layers/W1/BaseApp/Inventory/Costing/CleanUpPostValueEntries.Report.al`: added, not in the BC30 snapshot yet
- `src/Layers/W1/BaseApp/Inventory/Costing/PostValueEntriestoGL.Page.al`: added, not in the BC30 snapshot yet

## Also merged into

- [#13795](https://github.com/microsoft/BCApps/pull/13795) into `releases/29.x` on 2026-11-13

## Context

- Work items: AB#657019
- Labels: Team: SCM
- Systems: inventory

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Record Consumption or Usage of Project Resources and Items](https://learn.microsoft.com/dynamics365/business-central/projects-how-record-job-usage) — possibly related: touches Report 1002 "Post Inventory Cost to G/L"
- [Design details - Cost adjustment](https://learn.microsoft.com/dynamics365/business-central/design-details-cost-adjustment) — possibly related: Design details on cost adjustment mechanism and value entry to G/L processing. (model-linked)
- [Reconcile inventory costs with the general ledger](https://learn.microsoft.com/dynamics365/business-central/finance-how-to-post-inventory-costs-to-the-general-ledger) — possibly related: Documents Post Inventory Cost to G/L batch job and reconciliation process, central to this change. (model-linked)

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).
