Skip to content

[Shopify] Fix Shpfy Order Totals FB Test posting tests failing in CZ - #10577

Open
Onat Buyukakkus (onbuyuka) wants to merge 1 commit into
mainfrom
bugs/647314-shpfy-order-totals-cz-vat-period
Open

[Shopify] Fix Shpfy Order Totals FB Test posting tests failing in CZ#10577
Onat Buyukakkus (onbuyuka) wants to merge 1 commit into
mainfrom
bugs/647314-shpfy-order-totals-cz-vat-period

Conversation

@onbuyuka

@onbuyuka Onat Buyukakkus (onbuyuka) commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

TestPostedSalesInvoiceResolvedAndNavigated and TestNumberOfLinesDrillDownPostedInvoice in codeunit 139587 Shpfy Order Totals FB Test post a sales invoice. Under the Czech (CZ) localization, posting requires a VAT Period to exist for the posting date, which the test never sets up. As a result the two tests failed CZ-only (VAT Period does not exist for date …VAT Date Handler CZL.VATPeriodCZLCheck) and were disabled after the BCApps uptake.

Fix

Seed the country-specific VAT setup in Initialize() via LibraryERMCountryData.CreateVATData() and UpdateGeneralPostingSetup(), matching the other Shopify posting tests (ShpfyInvoicesTest, ShpfySuggestPaymentTest). In the CZ test layer CreateVATData() creates the required VAT Period; both calls are safe no-ops on W1.

Test plan

Ran the CZ integration test job (RunALIntegrationTests_CZ_Extensions): codeunit 139587 passes 10/10, including the two previously-failing posted-invoice tests.

Fixes AB#647314

@onbuyuka
Onat Buyukakkus (onbuyuka) requested a review from a team August 24, 2026 21:17
@onbuyuka
Onat Buyukakkus (onbuyuka) requested a review from a team as a code owner August 24, 2026 21:17
@github-actions github-actions Bot added AL: Apps (W1) Add-on apps for W1 Team: Integrations GitHub request for Integrations area labels Aug 24, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Aug 24, 2026
TestPostedSalesInvoiceResolvedAndNavigated and TestNumberOfLinesDrillDownPostedInvoice
post a sales invoice. Under the CZ localization posting requires a VAT Period to exist
for the posting date, which was missing, so the tests failed CZ-only. Seed the
country-specific VAT setup in Initialize() via LibraryERMCountryData.CreateVATData() and
UpdateGeneralPostingSetup(), matching the other Shopify posting tests (ShpfyInvoicesTest,
ShpfySuggestPaymentTest). These are safe no-ops in W1.

Fixes AB#647314

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b4a78ce-dc75-4c7c-b776-1ca966d5306b
@onbuyuka
Onat Buyukakkus (onbuyuka) force-pushed the bugs/647314-shpfy-order-totals-cz-vat-period branch from e86439c to 3b3ba6c Compare August 24, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 Team: Integrations GitHub request for Integrations area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant