Why do you need this change?
I have an issue where customers Vat Reg No have been validated with the "Verify VAT Registration No" on the VAT Registration Log on the customer card.
If they have entered the Country/Region Code and VAT Registration No. with the same prefix.
Eg: BE for Country and BExxxxxxxxx
It validates as a valid Vat Reg No.
The problem arrives when i run the "Sugges Lines" on the page 4812 "Intrastat Report".
It calculates the Vat Reg No as
BEBExxxxxxxxx on the lines because of my enum setting in the InfraStatReportSetup (IntrastatReportSetup."Company VAT No. on File"::"EU Country Code + VAT Reg. No")
Therefore it generates invalid Intrastat Lines in the table: Intrastat Report Line (4812) on the field: Partner VAT ID.
(Duplicate Country Code).
Describe the request
[IntegrationEvent(false, false)] local procedure OnBeforeGetVATRegNo(CountryCode: Code[10]; VATRegNo: Text[20]; VATRegNoType: Enum "Intrastat Report VAT File Fmt"; var IsHandled: Boolean) begin //new end;
Why do you need this change?
I have an issue where customers Vat Reg No have been validated with the "Verify VAT Registration No" on the VAT Registration Log on the customer card.
If they have entered the Country/Region Code and VAT Registration No. with the same prefix.
Eg: BE for Country and BExxxxxxxxx
It validates as a valid Vat Reg No.
The problem arrives when i run the "Sugges Lines" on the page 4812 "Intrastat Report".
It calculates the Vat Reg No as
BEBExxxxxxxxx on the lines because of my enum setting in the InfraStatReportSetup (IntrastatReportSetup."Company VAT No. on File"::"EU Country Code + VAT Reg. No")
Therefore it generates invalid Intrastat Lines in the table: Intrastat Report Line (4812) on the field: Partner VAT ID.
(Duplicate Country Code).
Describe the request
[IntegrationEvent(false, false)] local procedure OnBeforeGetVATRegNo(CountryCode: Code[10]; VATRegNo: Text[20]; VATRegNoType: Enum "Intrastat Report VAT File Fmt"; var IsHandled: Boolean) begin //new end;