Skip to content

[Extensibility Request] issue 30290: Add OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader event#9450

Open
AleksandricMarko wants to merge 1 commit into
mainfrom
ai-ext-fix/ext_issue-30290
Open

[Extensibility Request] issue 30290: Add OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader event#9450
AleksandricMarko wants to merge 1 commit into
mainfrom
ai-ext-fix/ext_issue-30290

Conversation

@AleksandricMarko

@AleksandricMarko AleksandricMarko commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

The issue author has a separate extension that already handles assignment of the VAT Registration No. and related posting groups when the bill-to customer changes on a sales header. Because SetBillToCustomerAddressFieldsFromCustomer always calls AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader, the standard logic can overwrite or conflict with the values set by their feature. This PR adds an IsHandled integration event so subscribers can skip that specific call while leaving the rest of the standard logic intact.

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

Changes Made

  • OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader - New IntegrationEvent raised in the SetBillToCustomerAddressFieldsFromCustomer procedure of table Sales Header, right before the AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader call. IsHandled is initialized to false and, when a subscriber sets it to true, the standard call is skipped. The same change was propagated to every layer that has its own copy of the file.

Fixes AB#641535

…alesHeader event

Add an IsHandled integration event before the AltCustVATRegFacade VAT
registration setup call in SetBillToCustomerAddressFieldsFromCustomer so
subscribers can skip the standard logic. Propagated across all layers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AleksandricMarko AleksandricMarko added event-request SCM GitHub request for SCM area labels 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 18:46
@AleksandricMarko AleksandricMarko requested a review from a team July 15, 2026 18:46
@github-actions

Copy link
Copy Markdown
Contributor

Copilot PR Review

Iteration 1 · Outcome: completed

Knowledge source: https://github.com/microsoft/BCQuality@186d8a131465475c79244d994acb872cd5c0d4bf

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

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

Findings produced by the AL review agent v1.7.3. Reply 👎 on any inline comment to flag false positives.

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