Why do you need this change?
I have a Business central customer based in Ireland. The company is registered for Irish VAT and UK VAT.
The VAT Number stored in the Company information is the Irish VAT Number.
The customer wants to use the MTD UK localisation for reporting VAT, however this requires submitting the return with the UK VAT number
Describe the request
I would like an event added to Codeunit 10537 MTD connection, procedure GetVATRegNo(), so that I can subscribe and select an alternative VAT Registration Number
for example:
local procedure GetVATRegNo(): Text[20]
var
CompanyInformation: Record "Company Information";
begin
CompanyInformation.Get();
CompanyInformation.TestField("VAT Registration No.");
// add begin
OnBeforeGetVATRegistraionNo(NewVATNo, Handled)
if Handled then
exit(NewVATno)
else // add end
exit(DelChr(CompanyInformation."VAT Registration No.", '=', DelChr(CompanyInformation."VAT Registration No.", '=', '0123456789')));
end;
Why do you need this change?
I have a Business central customer based in Ireland. The company is registered for Irish VAT and UK VAT.
The VAT Number stored in the Company information is the Irish VAT Number.
The customer wants to use the MTD UK localisation for reporting VAT, however this requires submitting the return with the UK VAT number
Describe the request
I would like an event added to Codeunit 10537 MTD connection, procedure GetVATRegNo(), so that I can subscribe and select an alternative VAT Registration Number
for example:
// add begin
OnBeforeGetVATRegistraionNo(NewVATNo, Handled)
if Handled then
exit(NewVATno)
else // add end
exit(DelChr(CompanyInformation."VAT Registration No.", '=', DelChr(CompanyInformation."VAT Registration No.", '=', '0123456789')));
end;