-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uptake latest changes and add missing E-Document changes (#25263)
Uptake latest changes and add missing E-Document changes. Those changes were missing because of the .gitignore file
- Loading branch information
1 parent
f960cfd
commit c8e7bbf
Showing
21 changed files
with
1,518 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ x86/ | |
bld/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
[Ll]og/ | ||
/[Ll]og/ | ||
[Oo]ut/ | ||
|
||
# Visual Studio 2015 cache/options directory | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 2 additions & 14 deletions
16
Apps/W1/BankAccRecWithAI/app/src/BankAccRecAIInstall.Codeunit.al
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,15 @@ | ||
namespace Microsoft.Bank.Reconciliation; | ||
|
||
using System.AI; | ||
using System.Environment; | ||
|
||
codeunit 7252 "Bank Acc. Rec. AI Install" | ||
{ | ||
Subtype = Install; | ||
InherentPermissions = X; | ||
InherentEntitlements = X; | ||
|
||
trigger OnInstallAppPerDatabase() | ||
begin | ||
RegisterCapability(); | ||
end; | ||
|
||
local procedure RegisterCapability() | ||
var | ||
CopilotCapability: Codeunit "Copilot Capability"; | ||
EnvironmentInformation: Codeunit "Environment Information"; | ||
LearnMoreUrlTxt: Label 'https://go.microsoft.com/fwlink/?linkid=2248547', Locked = true; | ||
BankRecAIMatchingImpl: Codeunit "Bank Rec. AI Matching Impl."; | ||
begin | ||
if EnvironmentInformation.IsSaaSInfrastructure() then | ||
if not CopilotCapability.IsCapabilityRegistered(Enum::"Copilot Capability"::"Bank Account Reconciliation") then | ||
CopilotCapability.RegisterCapability(Enum::"Copilot Capability"::"Bank Account Reconciliation", LearnMoreUrlTxt); | ||
BankRecAIMatchingImpl.RegisterCapability(); | ||
end; | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// ------------------------------------------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
// ------------------------------------------------------------------------------------------------ | ||
namespace Microsoft.eServices.EDocument; | ||
|
||
table 6125 "E-Doc. Data Storage" | ||
{ | ||
DataClassification = CustomerContent; | ||
|
||
fields | ||
{ | ||
field(1; "Entry No."; Integer) | ||
{ | ||
Caption = 'Entry No.'; | ||
AutoIncrement = true; | ||
} | ||
field(2; "Data Storage"; Blob) | ||
{ | ||
Caption = 'Data Storage'; | ||
} | ||
|
||
field(3; "Data Storage Size"; Integer) | ||
{ | ||
Caption = 'Data Storage Size'; | ||
} | ||
} | ||
|
||
keys | ||
{ | ||
key(Key1; "Entry No.") | ||
{ | ||
Clustered = true; | ||
} | ||
} | ||
} |
90 changes: 90 additions & 0 deletions
90
Apps/W1/EDocument/app/src/Log/EDocumentIntegrationLog.Table.al
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// ------------------------------------------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
// ------------------------------------------------------------------------------------------------ | ||
namespace Microsoft.eServices.EDocument; | ||
|
||
table 6127 "E-Document Integration Log" | ||
{ | ||
DataClassification = CustomerContent; | ||
|
||
fields | ||
{ | ||
field(1; "Entry No."; Integer) | ||
{ | ||
AutoIncrement = true; | ||
Caption = 'Entry No'; | ||
DataClassification = SystemMetadata; | ||
} | ||
field(2; "E-Doc. Entry No"; Integer) | ||
{ | ||
Caption = 'E-Doc. Entry No'; | ||
TableRelation = "E-Document"; | ||
} | ||
field(3; "Service Code"; Code[20]) | ||
{ | ||
Caption = 'Service Code'; | ||
TableRelation = "E-Document Service"; | ||
} | ||
field(4; "Request Blob"; BLOB) | ||
{ | ||
Caption = 'Request Blob'; | ||
} | ||
field(5; "Response Blob"; BLOB) | ||
{ | ||
Caption = 'Response Blob'; | ||
} | ||
field(6; "Response Status"; Integer) | ||
{ | ||
Caption = 'Response Status'; | ||
} | ||
field(7; URL; Text[250]) | ||
{ | ||
Caption = 'URL'; | ||
} | ||
field(8; Method; Text[10]) | ||
{ | ||
Caption = 'Method'; | ||
} | ||
} | ||
|
||
keys | ||
{ | ||
key(Key1; "Entry No.") | ||
{ | ||
Clustered = true; | ||
} | ||
} | ||
|
||
var | ||
EDcoumentRequestBlobTxt: Label 'E-Document_RequestMessage_%1.txt', Locked = true; | ||
EDcoumentResponseBlobTxt: Label 'E-Document_ResponseMessage_%1.txt', Locked = true; | ||
|
||
internal procedure ExportRequestMessage() | ||
var | ||
InStr: InStream; | ||
FileName: Text; | ||
begin | ||
Rec.CalcFields("Request Blob"); | ||
if not Rec."Request Blob".HasValue() then | ||
exit; | ||
|
||
Rec."Request Blob".CreateInStream(InStr); | ||
FileName := StrSubstNo(EDcoumentRequestBlobTxt, "E-Doc. Entry No"); | ||
DownloadFromStream(InStr, '', '', '', FileName); | ||
end; | ||
|
||
internal procedure ExportResponseMessage() | ||
var | ||
InStr: InStream; | ||
FileName: Text; | ||
begin | ||
Rec.CalcFields("Response Blob"); | ||
if not Rec."Response Blob".HasValue() then | ||
exit; | ||
|
||
Rec."Response Blob".CreateInStream(InStr); | ||
FileName := StrSubstNo(EDcoumentResponseBlobTxt, "E-Doc. Entry No"); | ||
DownloadFromStream(InStr, '', '', '', FileName); | ||
end; | ||
} |
Oops, something went wrong.