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;
alternatives_evaluated: There are no exisiting events in the codeunit to change the exiting behaviour
justification_for_ishandled: The current procedure returns the standard VAT Registration No. in the exit statement of the procedure. I need to return a different no. so I need to ensure that standard exit statement is not executed
exit(DelChr(CompanyInformation."VAT Registration No.", '=', DelChr(CompanyInformation."VAT Registration No.", '=', '0123456789')));
performance_considerations: Provide the expected execution frequency or impact.
Execution frequency is typically 1 per month for VAT Returns. Also i will be retuening an alternative VAT registration no. so performance impact will be minimal
data_sensitivity_review: Confirm whether exposing this data has any sensitive data implications.
There is no additional data sensitivity. Instead of returning the Standard VAT no. an alternative VAT number will be retuned from the procedure
multi_extension_interaction: Acknowledge potential conflicts if multiple extensions subscribe.
Yes if multiple extensions subscribe then they could potentially cause a conflict with the VAT No. returned
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;
alternatives_evaluated: There are no exisiting events in the codeunit to change the exiting behaviour
justification_for_ishandled: The current procedure returns the standard VAT Registration No. in the exit statement of the procedure. I need to return a different no. so I need to ensure that standard exit statement is not executed
exit(DelChr(CompanyInformation."VAT Registration No.", '=', DelChr(CompanyInformation."VAT Registration No.", '=', '0123456789')));
performance_considerations: Provide the expected execution frequency or impact.
Execution frequency is typically 1 per month for VAT Returns. Also i will be retuening an alternative VAT registration no. so performance impact will be minimal
data_sensitivity_review: Confirm whether exposing this data has any sensitive data implications.
There is no additional data sensitivity. Instead of returning the Standard VAT no. an alternative VAT number will be retuned from the procedure
multi_extension_interaction: Acknowledge potential conflicts if multiple extensions subscribe.
Yes if multiple extensions subscribe then they could potentially cause a conflict with the VAT No. returned