The code snippet is:-
var
TaxArea: Record "Tax Area";
if "Tax Area Code" <> '' then begin
TaxArea.GET("Tax Area Code");
case TaxArea."Country/Region" of //3
TaxArea."Country/Region"::US: //4
TotalTaxLabel := Text005;
TaxArea."Country/Region"::CA: //6
begin
TotalTaxLabel := Text007;
TaxRegNo := CompanyInformation."VAT Registration No.";
TaxRegLabel := CompanyInformation.FIELDCAPTION("VAT Registration No.");
end;
end;
I have issue regarding the line no. 3,4 & 6.
It displays that the 'Record "Tax Area"' does not contain a definition for 'Country/Region'.
How can I get the country code from the Tax Area record?