Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ codeunit 134246 "Shpfy Tax Id Mapping Test"
NewTaxRegistrationId := LibraryERM.GenerateVATRegistrationNo(CompanyInformation."Country/Region Code");
// [GIVEN] Customer with empty VAT Registration No.
CreateCustomerWithVATRegNo(Customer, '');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we then losing code coverage here in BE?

Consider moving the code into CreateCustomerWithVATRegNo

if CompanyInformation."Country/Region Code" = 'BE' then begin
Customer."Country/Region Code" := 'DE'; // VAT Reg No. not allowed for BE Customers
Customer.Modify();
NewTaxRegistrationId := LibraryERM.GenerateVATRegistrationNo(Customer."Country/Region Code");
end;
// [GIVEN] TaxRegistrationIdMapping interface is "VAT Registration No."
TaxRegistrationIdMapping := Enum::"Shpfy Comp. Tax Id Mapping"::"VAT Registration No.";

Expand Down
Loading