---
id: change/bcapps/9774
type: change
title: "#9774 [Extensibility Request] issue 30378: add OnItemVariantOnAfterGetRecordOnBeforePrintOnlyIfSalesCheck event in Item Sales Statistics report"
summary: A new integration event allows extensions to influence whether item variant rows are printed in the Item Sales Statistics report when "Only Items with Sales" and "Breakdown By Variant" are both enabled, by exposing the skip decision and related data to subscribers.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - report item sales statistics
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:07:24.556Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8d54dfbd92decee66523842843c26bfc4f97f720
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9774
    title: "microsoft/BCApps#9774: [Extensibility Request] issue 30378: add OnItemVariantOnAfterGetRecordOnBeforePrintOnlyIfSalesCheck event in Item Sales Statistics report"
    date: "2026-08-27"
    commit: 8d54dfbd92decee66523842843c26bfc4f97f720
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/report/10135-ca
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9774
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9774
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-27T19:35:11Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
  - event-request
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 1
  additions: 12
  deletions: 6
  al: 1
apps:
  - Base Application
objects_touched:
  - key: report/10135
    page: report/10135-ca
    type: report
    id: 10135
    name: Item Sales Statistics
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 644154
systems:
  - inventory
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9774 [Extensibility Request] issue 30378: add OnItemVariantOnAfterGetRecordOnBeforePrintOnlyIfSalesCheck event in Item Sales Statistics report

> A new integration event allows extensions to influence whether item variant rows are printed in the Item Sales Statistics report when "Only Items with Sales" and "Breakdown By Variant" are both enabled, by exposing the skip decision and related data to subscribers.

[Pull request](https://github.com/microsoft/BCApps/pull/9774) · merged into `main` (BC30) on 2026-08-27 by AleksandricMarko · 1 file (+12 -6), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New event OnItemVariantOnAfterGetRecordOnBeforePrintOnlyIfSalesCheck fires after Item.CalcFields and before the skip check in the Item Variant OnAfterGetRecord trigger
- Event parameters expose Item, ItemVariant, and the PrintOnlyIfSales flag to subscribers
- Extensions can override the SkipRecord variable via a var parameter to fold in their own sales figures
- Solves the issue that extensions could not influence the row skip decision for custom sales quantities
- Event raised at the variant level, enabling subscribers to control row visibility per variant

## AL objects touched

- [Report 10135 "Item Sales Statistics"](../../objects/report/10135-ca.md), Base Application (CA layer): modified

## Context

- Work items: AB#644154
- Labels: Team: SCM, event-request
- Systems: inventory

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