-
Notifications
You must be signed in to change notification settings - Fork 398
Delocalize Export G/L Entries to XML into Audit File Export framework #9104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ventselartur
wants to merge
1
commit into
main
Choose a base branch
from
features/610524-DelocalizationExportGLEntries
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,10 @@ | |
| { | ||
| "from": 10826, | ||
| "to": 10832 | ||
| }, | ||
| { | ||
| "from": 10879, | ||
| "to": 10879 | ||
| } | ||
| ], | ||
| "resourceExposurePolicy": { | ||
|
|
||
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
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
27 changes: 27 additions & 0 deletions
27
src/Apps/FR/FECAuditFile/app/src/PageVisibilityFEC.Codeunit.al
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.Finance.AuditFileExport; | ||
|
|
||
| codeunit 10879 "Page Visibility FEC" implements "Audit File Export Page Visibility" | ||
| { | ||
| Access = Internal; | ||
| InherentEntitlements = X; | ||
| InherentPermissions = X; | ||
|
|
||
| procedure GetUIVisibility(var FieldVisibility: Dictionary of [Text, Boolean]; var ActionVisibility: Dictionary of [Text, Boolean]) | ||
| begin | ||
| // FEC format hides certain fields and actions from the base page | ||
| FieldVisibility.Set('GLAccountMappingCode', false); | ||
| FieldVisibility.Set('SplitByMonth', false); | ||
| FieldVisibility.Set('SplitByDate', false); | ||
| FieldVisibility.Set('HeaderComment', false); | ||
| FieldVisibility.Set('Contact', false); | ||
| FieldVisibility.Set('ZipFileGeneration', false); | ||
| FieldVisibility.Set('CreateMultipleZipFiles', false); | ||
| FieldVisibility.Set('LatestDataCheckDateTime', false); | ||
| FieldVisibility.Set('DataCheckStatus', false); | ||
| ActionVisibility.Set('DataCheck', false); | ||
| end; | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| { | ||
| "id": "6086ffec-252c-43fd-b862-08c689e208c2", | ||
| "name": "XML Audit File", | ||
| "publisher": "Microsoft", | ||
| "version": "$(app_currentVersion)", | ||
| "brief": "Export G/L entries to XML via Audit File Export framework.", | ||
| "description": "XML export for general ledger entries using the Audit File Export framework.", | ||
| "privacyStatement": "https://go.microsoft.com/fwlink/?LinkId=724009", | ||
| "EULA": "https://go.microsoft.com/fwlink/?linkid=2009120", | ||
| "help": "https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/france/how-to-export-general-ledger-entries-for-tax-audits", | ||
| "contextSensitiveHelpUrl": "https://go.microsoft.com/fwlink/?linkid=2204541", | ||
| "url": "https://go.microsoft.com/fwlink/?LinkId=724011", | ||
| "logo": "ExtensionLogo.png", | ||
| "dependencies": [ | ||
| { | ||
| "id": "a41b0c3e-bf1c-4c97-ad1b-b430a3933ada", | ||
| "name": "Audit File Export", | ||
| "publisher": "Microsoft", | ||
| "version": "$(app_minimumVersion)" | ||
| } | ||
| ], | ||
| "internalsVisibleTo": [ | ||
| { | ||
| "id": "86cb76b5-cdd3-4a37-809c-1c41b8bb7cab", | ||
| "name": "XML Audit File Tests", | ||
| "publisher": "Microsoft" | ||
| } | ||
| ], | ||
| "screenshots": [], | ||
| "platform": "$(app_platformVersion)", | ||
| "application": "$(app_minimumVersion)", | ||
| "idRanges": [ | ||
| { | ||
| "from": 10803, | ||
| "to": 10813 | ||
| } | ||
| ], | ||
| "resourceExposurePolicy": { | ||
| "allowDebugging": false, | ||
| "allowDownloadingSource": false, | ||
| "includeSourceInSymbolFile": false | ||
| }, | ||
| "target": "Cloud", | ||
| "features": [ | ||
| "TranslationFile" | ||
| ] | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
src/Apps/FR/XMLAuditFile/app/src/AuditFileExportFormatXML.EnumExt.al
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.Finance.AuditFileExport; | ||
|
|
||
| enumextension 10803 "Audit File Export Format XML" extends "Audit File Export Format" | ||
| { | ||
| value(10803; "GL Entries XML FR") | ||
| { | ||
| Caption = 'GL Entries XML FR'; | ||
| Implementation = "Audit File Export Data Handling" = "Data Handling XML", | ||
| "Audit File Export Data Check" = "Data Check XML", | ||
| "Audit File Export Page Visibility" = "Page Visibility XML"; | ||
| } | ||
| } |
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
| 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.Finance.AuditFileExport; | ||
|
|
||
| using Microsoft.CRM.Contact; | ||
| using Microsoft.Foundation.Company; | ||
|
|
||
| codeunit 10805 "Data Check XML" implements "Audit File Export Data Check" | ||
| { | ||
| Access = Internal; | ||
| InherentEntitlements = X; | ||
| InherentPermissions = X; | ||
|
|
||
| procedure CheckDataToExport(var AuditFileExportHeader: Record "Audit File Export Header"): Enum "Audit Data Check Status" | ||
| var | ||
| Contact: Record Contact; | ||
| begin | ||
| Contact.Get(AuditFileExportHeader.Contact); | ||
| Contact.TestField(Address); | ||
| end; | ||
|
|
||
| procedure CheckAuditDocReadyToExport(var AuditFileExportHeader: Record "Audit File Export Header"): Enum "Audit Data Check Status" | ||
| var | ||
| CompanyInformation: Record "Company Information"; | ||
| begin | ||
| AuditFileExportHeader.TestField("Starting Date"); | ||
| AuditFileExportHeader.TestField("Ending Date"); | ||
|
|
||
| CompanyInformation.Get(); | ||
| CompanyInformation.TestField("Registration No."); | ||
|
|
||
| exit("Audit Data Check Status"::Passed); | ||
| end; | ||
| } |
49 changes: 49 additions & 0 deletions
49
src/Apps/FR/XMLAuditFile/app/src/DataHandlingXML.Codeunit.al
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| // ------------------------------------------------------------------------------------------------ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. See License.txt in the project root for license information. | ||
| // ------------------------------------------------------------------------------------------------ | ||
| namespace Microsoft.Finance.AuditFileExport; | ||
|
|
||
| using System.Utilities; | ||
|
|
||
| codeunit 10806 "Data Handling XML" implements "Audit File Export Data Handling" | ||
| { | ||
| Access = Internal; | ||
| InherentEntitlements = X; | ||
| InherentPermissions = X; | ||
|
|
||
| var | ||
| GLEntriesXMLLbl: Label 'G/L Entries XML'; | ||
|
|
||
| procedure GenerateFileContentForAuditFileExportLine(var AuditFileExportLine: Record "Audit File Export Line"; var TempBlob: Codeunit "Temp Blob") | ||
| var | ||
| GenerateFileXML: Codeunit "Generate File XML"; | ||
| begin | ||
| GenerateFileXML.GenerateXMLFile(AuditFileExportLine, TempBlob); | ||
| end; | ||
|
|
||
| procedure LoadStandardAccounts(StandardAccountType: Enum "Standard Account Type") Result: Boolean; | ||
| begin | ||
| end; | ||
|
|
||
| procedure CreateAuditFileExportLines(var Header: Record "Audit File Export Header") | ||
| var | ||
| AuditFileExportLine: Record "Audit File Export Line"; | ||
| AuditFileExportMgt: Codeunit "Audit File Export Mgt."; | ||
| LineNo: Integer; | ||
| begin | ||
| AuditFileExportLine.SetRange(ID, Header.ID); | ||
| AuditFileExportLine.DeleteAll(true); | ||
|
|
||
| AuditFileExportMgt.InsertAuditFileExportLine(AuditFileExportLine, LineNo, Header.ID, "Audit File Export Data Class"::Custom, GLEntriesXMLLbl, Header."Starting Date", Header."Ending Date"); | ||
| end; | ||
|
|
||
| procedure GetFileNameForAuditFileExportLine(var AuditFileExportLine: Record "Audit File Export Line"): Text[1024] | ||
| begin | ||
| exit('GLEntries_' + Format(AuditFileExportLine."Ending Date") + '.xml'); | ||
| end; | ||
|
|
||
| procedure InitAuditExportDataTypeSetup(); | ||
| begin | ||
| end; | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use FR in the app name? Other countries can also have XML Audit File apps?