Skip to content

[Extensibility Request] issue 30339: add OnAfterCalcAvailableQtyBase event to Whse. Worksheet Line#9437

Merged
AleksandricMarko merged 1 commit into
mainfrom
ai-ext-fix/ext_issue-30339
Jul 15, 2026
Merged

[Extensibility Request] issue 30339: add OnAfterCalcAvailableQtyBase event to Whse. Worksheet Line#9437
AleksandricMarko merged 1 commit into
mainfrom
ai-ext-fix/ext_issue-30339

Conversation

@AleksandricMarko

@AleksandricMarko AleksandricMarko commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

The issue reports that extensions cannot adjust the final available quantity computed by CalcAvailableQtyBase() in table 7326 "Whse. Worksheet Line". The existing OnBeforeCalcAvailableQtyBase event only supports fully replacing the calculation, and the underlying CalcTotalAvailQtyToPickForDirectedPutAwayPick helper is marked Internal, so scenarios such as stock ring-fencing cannot reuse the standard logic and then tweak the result. This PR adds an integration event at the end of the procedure so subscribers can adjust the calculated AvailableQty after the standard calculation runs.

Source issue repository: microsoft/AlAppExtensions; issue number: 30339

Changes Made

  • Whse. Worksheet Line.CalcAvailableQtyBase - raise a new OnAfterCalcAvailableQtyBase(Rec, AvailableQty) integration event at the end of the procedure so extensions can adjust the final calculated available quantity without reimplementing the standard logic.
  • OnAfterCalcAvailableQtyBase - added the integration event publisher alongside the existing OnBeforeCalcAvailableQtyBase publisher.

Fixes AB#641774

@AleksandricMarko AleksandricMarko added the SCM GitHub request for SCM area label Jul 14, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jul 14, 2026
@AleksandricMarko AleksandricMarko marked this pull request as ready for review July 15, 2026 07:12
@AleksandricMarko AleksandricMarko requested a review from a team July 15, 2026 07:12
@github-actions

Copy link
Copy Markdown
Contributor

Copilot PR Review

Iteration 1 · Outcome: completed

Knowledge source: https://github.com/microsoft/BCQuality@809af9708e265f110ced6752fd8f2e40f1efc820

Findings by domain

Findings split into Knowledge-backed (cite a BCQuality article) and Agent (the agent's own judgement, no matching BCQuality rule).

Domain Findings Knowledge-backed Agent Inline Fallback
Agent 2 0 2 0 0
Other 2 2 0 0 0

Totals: 2 knowledge-backed · 2 agent findings.

Orchestrator pre-filter (2 file(s) excluded)

  • layer-disabled (knowledge) : 2 file(s)

Findings produced by the Copilot CLI agent against BCQuality at 809af9708e265f110ced6752fd8f2e40f1efc820. Reply 👎 on any inline comment to flag false positives.

@AleksandricMarko AleksandricMarko added this pull request to the merge queue Jul 15, 2026
Merged via the queue into main with commit 87fbc1c Jul 15, 2026
326 of 333 checks passed
@AleksandricMarko AleksandricMarko deleted the ai-ext-fix/ext_issue-30339 branch July 15, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

event-request SCM GitHub request for SCM area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants