Skip to content

Making Tax Digital - alternative VAT Registration Number #30261

@decojbreen-web

Description

@decojbreen-web

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-infoThe issue misses information that prevents it from completion.

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions