Skip to content

KVSKBAIntrastatManagement#

Procedures#

IsIntrastatCoreEnabledAndInstalled() : Boolean#

Summary: This function determines whether the Microsoft core Intrastat functionality is enabled.

procedure IsIntrastatCoreEnabledAndInstalled(): Boolean

Returns: Returns true if the Intrastat Core App is installed.

Events#

OnBeforeGetIntrastatReportVATNoBasedOnValue(Boolean, Integer) :#

Summary: Integration event that allows customization of the Intrastat Report VAT No. Based On value retrieval.

[IntegrationEvent(false, false)]
local procedure OnBeforeGetIntrastatReportVATNoBasedOnValue(var IsHandled: Boolean; var Result: Integer): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAIntrastatManagement", 'OnBeforeGetIntrastatReportVATNoBasedOnValue', '', false, false)]
local procedure DoSomethingOnBeforeGetIntrastatReportVATNoBasedOnValue(var IsHandled: Boolean; var Result: Integer)
begin
end;

Parameters:

  • IsHandled: Variable indicating whether a subscriber has handled the value retrieval (set to true to skip default logic)
  • Result: Variable for the VAT No. Based On value (can be set by subscribers)

Remarks: Use this event to provide custom logic for determining the VAT No. Based On value from Intrastat Report Setup