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.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Stale Status Check Deleted

The Pull Request Build workflow run for this PR was older than 72 hours and has been deleted.

📋 Why was it deleted?

Status checks that are too old may no longer reflect the current state of the target branch. To ensure this PR is validated against the latest code and passes up-to-date checks, a fresh build is required.


🔄 How to trigger a new status check:

  1. 📤 Push a new commit to the PR branch, or
  2. 🔁 Close and reopen the PR

This will automatically trigger a new Pull Request Build workflow run.

Comment thread src/Layers/W1/BaseApp/Sales/Document/SalesHeader.Table.al

@qasimikram qasimikram left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The event is narrowly scoped around the requested VAT registration setup update and is propagated consistently across the country-layer copies.

S1: Please add regression coverage for both branches. Verify that the standard facade update remains effective when unhandled and that a handled subscriber's custom VAT registration and posting setup is not overwritten by the standard call.

auto-merge was automatically disabled July 23, 2026 16:55

Pull request was closed

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