[E-Document] Fix historical matching and capability registration#7752
Merged
Conversation
Bug 631283: Fix three issues in e-document AI matching: 1. Register Copilot capability on-demand in SaaS if not already registered, preventing matching from silently failing. 2. Add missing fields to SetLoadFields in CopilotLineMatching (Description, Product Code, Quantity, Unit of Measure, Unit Price) so historical matching receives the data it needs. 3. Fix Product Code search in historical matching — was searching Purch. Inv. Line "No." (G/L Account) instead of the vendor's product code. Now enriches temp table with product codes from E-Doc. Purchase Line History during loading and searches "Vendor Item No." for the ProductCode match type.
9d513cc to
bc06d20
Compare
There was a problem hiding this comment.
AL Documentation Audit
Documentation gaps were detected in the following apps:
- E-Document-Core: 0% documentation coverage
To generate documentation, run /al-docs init or /al-docs update using GitHub Copilot CLI or Claude Code.
This review is for awareness to help keep documentation in sync with code changes. It is okay to dismiss this request.
dcenic
approved these changes
Apr 20, 2026
mynjj
approved these changes
Apr 20, 2026
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.
Bug 631283: Fix three issues in e-document AI matching:
Register Copilot capability on-demand in SaaS if not already registered, preventing matching from silently failing.
Add missing fields to SetLoadFields in CopilotLineMatching (Description, Product Code, Quantity, Unit of Measure, Unit Price) so historical matching receives the data it needs.
Fix Product Code search in historical matching — was searching Purch. Inv. Line "No." (G/L Account) instead of the vendor's product code. Now enriches temp table with product codes from E-Doc. Purchase Line History during loading and searches "Vendor Item No." for the ProductCode match type.
Fixes AB#631283