Skip to content

Commit bcb3ba0

Browse files
Groenbech96Magnus Hartvig Grønbech
andauthored
Continia App - Fix CZ Tests (#5776)
<!-- Thank you for submitting a Pull Request. If you're new to contributing to BCApps please read our pull request guideline below * https://github.com/microsoft/BCApps/Contributing.md --> #### Summary Fix CZ VAT Date #### Work Item(s) <!-- Add the issue number here after the #. The issue needs to be open and approved. Submitting PRs with no linked issues or unapproved issues is highly discouraged. --> Fixes [AB#615284](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/615284) Co-authored-by: Magnus Hartvig Grønbech <[email protected]>
1 parent d030b16 commit bcb3ba0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Apps/W1/EDocumentConnectors/Continia/Test/src/ContiniaDocIntegrTests.Codeunit.al

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ namespace Microsoft.EServices.EDocumentConnector.Continia;
33
using Microsoft.eServices.EDocument;
44
using Microsoft.eServices.EDocument.Integration;
55
using Microsoft.Finance.Currency;
6+
using Microsoft.Finance.GeneralLedger.Setup;
67
using Microsoft.Finance.VAT.Setup;
78
using Microsoft.Foundation.Company;
89
using Microsoft.Foundation.UOM;
@@ -1112,6 +1113,7 @@ codeunit 148203 "Continia Doc. Integr. Tests"
11121113
ContiniaConnectionSetup: Record "Continia Connection Setup";
11131114
PurchaseHeader: Record "Purchase Header";
11141115
Currency: Record Currency;
1116+
GeneralLedgerSetup: Record "General Ledger Setup";
11151117
EnvironmentInfoTestLibrary: Codeunit "Environment Info Test Library";
11161118
begin
11171119
LibraryPermission.SetOutsideO365Scope();
@@ -1121,6 +1123,10 @@ codeunit 148203 "Continia Doc. Integr. Tests"
11211123
ContiniaConnectionSetup.Init();
11221124
ContiniaConnectionSetup.Insert(true);
11231125

1126+
GeneralLedgerSetup.GetRecordOnce();
1127+
GeneralLedgerSetup."VAT Reporting Date Usage" := GeneralLedgerSetup."VAT Reporting Date Usage"::Disabled;
1128+
GeneralLedgerSetup.Modify();
1129+
11241130
PurchaseHeader.DeleteAll();
11251131

11261132
if IsInitialized then

0 commit comments

Comments
 (0)