Source AL, 337 lines
src/Apps/W1/EDocument/App/src/Processing/OrderMatching/Copilot/EDocPOCopilotMatching.Codeunit.allines 13 to 28 of 337, Copyright (c) Microsoft Corporation. MIT
codeunit 6163 "E-Doc. PO Copilot Matching"{ Access = Internal; InherentPermissions = X; InherentEntitlements = X; ObsoleteState = Pending; ObsoleteReason = 'The E-Document Purchase Order Matching Copilot has been deprecated. AI-assisted line matching is now handled at import time in the E-Document Purchase Draft experience by codeunit "E-Doc. AI Tool Processor".'; ObsoleteTag = '29.0'; var EDocAIMatchingFunction: Codeunit "E-Doc. PO AOAI Function"; FeatureTelemetry: Codeunit "Feature Telemetry"; GroundResult: Boolean; CostDifferenceThreshold: Decimal; AzureOpenAIFailureErr: Label 'Sorry, something went wrong. Please try again.'; LearnMoreUrlTxt: Label 'https://go.microsoft.com/fwlink/?linkid=2262630', Locked = true;
All 337 lines
Public procedures 9 in 29
| MatchWithCopilot(var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary; var TempAIProposalBuffer: Record "E-Doc. PO Match Prop. Buffer" temporary): Boolean | new in 24 |
| CostDifference(POCost: Decimal; PODiscount: Decimal; EdocCost: Decimal; EDocDiscount: Decimal): Decimal | new in 24 |
| Match(var TempAIProposalBuffer: Record "E-Doc. PO Match Prop. Buffer" temporary; var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary; CompletionPromptTxt: SecretText; UserInputTxt: Text): Boolean | new in 24 |
| Match(CompletionPromptTxt: SecretText; UserInputTxt: Text; var TempAIProposalBuffer: Record "E-Doc. PO Match Prop. Buffer" temporary; var TempEDocumentImportedLine: Record "E-Doc. Imported Line" temporary; var TempPurchaseLine: Record "Purchase Line" temporary): Integer | new in 24 |
| SumUnitCostForAIMatches(var TempAIProposalBuffer: Record "E-Doc. PO Match Prop. Buffer" temporary): Decimal | new in 24 |
| RegisterAICapability() | new in 24 |
All 11 procedures in 24-29
Changes 1 in 29
| List | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
|---|
| Object | | | | | | | | | | | | | 1 |
|---|
| Procedures | | | | | | | | | 3 | 1 | | | |
|---|
| codeunit 6163 "E-Doc. PO Copilot Matching" | new in 24 |
| marked Pending, tag 29.0: The E-Document Purchase Order Matching Copilot has been deprecated. AI-assisted line matching is now handled at import time in the E-Document Purchase Draft experience by codeunit "E-Doc. AI Tool Processor". |
All 5 changes in 24-29