Skip to content

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

Draft
AleksandricMarko wants to merge 1 commit into
mainfrom
ai-ext-fix/ext_issue-30339
Draft

[Extensibility Request] issue 30339: add OnAfterCalcAvailableQtyBase event to Whse. Worksheet Line#9437
AleksandricMarko wants to merge 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

…orksheet Line

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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
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.

1 participant