[Extensibility Request] issue 30378: add OnItemVariantOnAfterGetRecordOnBeforePrintOnlyIfSalesCheck event in Item Sales Statistics report - #9774
Open
AleksandricMarko wants to merge 2 commits into
Conversation
…lyIfSalesCheck event in Item Sales Statistics report Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
@copilot |
…rGetRecordOnBeforePrintOnlyIfSalesCheck
Contributor
Fixed in the latest commit — |
AleksandricMarko
marked this pull request as ready for review
July 28, 2026 09:59
AleksandricMarko
enabled auto-merge
July 28, 2026 09:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When "Only Items with Sales" and "Breakdown By Variant" are both enabled on the Item Sales Statistics report (10135), the base report decides, per item variant, whether to skip a row based solely on
Item."Sales (Qty.)"and the privatePrintOnlyIfSalesflag. Extensions that compute their own sales figures (for example alternate unit-of-measure quantities) cannot influence this decision becausePrintOnlyIfSaleshas no accessible getter and the skip is evaluated before any extension trigger runs. This PR exposes the already-computed skip decision through a new integration event at the variant level so subscribers can fold in their own figures.Source issue repository: microsoft/AlAppExtensions; issue number: 30378
Changes Made
OnItemVariantOnAfterGetRecordOnBeforePrintOnlyIfSalesCheck- new integration event raised in theItem VariantOnAfterGetRecordtrigger afterItem.CalcFieldsand before theCurrReport.Skip()check; the inline skip condition now assigns aSkipRecordboolean that the event can override viavar, exposingItem,ItemVariant, andPrintOnlyIfSalesto subscribers.Fixes AB#644154