Codeunit "VAT Registration Log Mgt."

ID 249
Namespace: Microsoft.Finance.VAT.Registration

Properties

Name Value
Permissions TableData "VAT Registration Log" = rimd

Methods

LogCustomer

procedure LogCustomer(Customer: Record Customer)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer

LogVendor

procedure LogVendor(Vendor: Record Vendor)

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor

LogContact

procedure LogContact(Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

DeleteCustomerLog

procedure DeleteCustomerLog(Customer: Record Customer)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer

DeleteVendorLog

procedure DeleteVendorLog(Vendor: Record Vendor)

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor

DeleteContactLog

procedure DeleteContactLog(Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

AssistEditCustomerVATReg

procedure AssistEditCustomerVATReg(Customer: Record Customer)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer

CheckIfCountryCodeIsSet

procedure CheckIfCountryCodeIsSet(Customer: Record Customer)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer

AssistEditVendorVATReg

procedure AssistEditVendorVATReg(Vendor: Record Vendor)

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor

AssistEditContactVATReg

procedure AssistEditContactVATReg(Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

AssistEditCompanyInfoVATReg

procedure AssistEditCompanyInfoVATReg()

CheckVIESForVATNo

procedure CheckVIESForVATNo(var RecordRef: RecordRef, var VATRegistrationLog: Record "VAT Registration Log", RecordVariant: Variant, EntryNo: Code[20], CountryCode: Code[10], AccountType: Option)

Parameters

Name Type Description
RecordRef RecordRef
VATRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"
RecordVariant Variant
EntryNo Code[20]
CountryCode Code[10]
AccountType Option

CheckVIESForVATNoField

procedure CheckVIESForVATNoField(var RecordRef: RecordRef, var VATRegistrationLog: Record "VAT Registration Log", RecordVariant: Variant, EntryNo: Code[20], CountryCode: Code[10], AccountType: Option, VATNoFieldName: Text)

Parameters

Name Type Description
RecordRef RecordRef
VATRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"
RecordVariant Variant
EntryNo Code[20]
CountryCode Code[10]
AccountType Option
VATNoFieldName Text

UpdateRecordFromVATRegLog

procedure UpdateRecordFromVATRegLog(var RecordRef: RecordRef, RecordVariant: Variant, VATRegistrationLog: Record "VAT Registration Log")

Parameters

Name Type Description
RecordRef RecordRef
RecordVariant Variant
VATRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"

InitServiceSetup

procedure InitServiceSetup()

SetupService

procedure SetupService()

EnableService

procedure EnableService()

ValidateVATRegNoWithVIES

procedure ValidateVATRegNoWithVIES(var RecordRef: RecordRef, RecordVariant: Variant, EntryNo: Code[20], AccountType: Option, CountryCode: Code[10])

Parameters

Name Type Description
RecordRef RecordRef
RecordVariant Variant
EntryNo Code[20]
AccountType Option
CountryCode Code[10]

GetServiceDisclaimerUR

procedure GetServiceDisclaimerUR(): Text

Returns

Type Description
Text

HandleViesRegisterServiceConnection

[EventSubscriber(Table,1400,OnRegisterServiceConnection,,False,False)]
procedure HandleViesRegisterServiceConnection(var ServiceConnection: Record "Service Connection" temporary)

Parameters

Name Type Description
ServiceConnection Table Microsoft.Utilities."Service Connection"

Events

OnAfterInsertVATRegistrationLog

[IntegrationEvent(False,False)]
local procedure OnAfterInsertVATRegistrationLog(var VATRegistrationLog: Record "VAT Registration Log")

Parameters

Name Type Description
VATRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"

OnAssistEditContactVATRegOnBeforeRunPageVATRegistrationLog

[IntegrationEvent(False,False)]
local procedure OnAssistEditContactVATRegOnBeforeRunPageVATRegistrationLog(var VATRegistrationLog: Record "VAT Registration Log", Contact: Record Contact)

Parameters

Name Type Description
VATRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"
Contact Table Microsoft.CRM.Contact.Contact

OnAssistEditCustomerVATRegOnBeforeRunPageVATRegistrationLog

[IntegrationEvent(False,False)]
local procedure OnAssistEditCustomerVATRegOnBeforeRunPageVATRegistrationLog(var VATRegistrationLog: Record "VAT Registration Log", Customer: Record Customer)

Parameters

Name Type Description
VATRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"
Customer Table Microsoft.Sales.Customer.Customer

OnAssistEditVendorVATRegOnBeforeRunPageVATRegistrationLog

[IntegrationEvent(False,False)]
local procedure OnAssistEditVendorVATRegOnBeforeRunPageVATRegistrationLog(var VATRegistrationLog: Record "VAT Registration Log", Vendor: Record Vendor)

Parameters

Name Type Description
VATRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"
Vendor Table Microsoft.Purchases.Vendor.Vendor

OnBeforeUpdateRecordFromVATRegLog

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateRecordFromVATRegLog(var RecordRef: RecordRef, RecordVariant: Variant, VATRegistrationLog: Record "VAT Registration Log", var IsHandled: Boolean)

Parameters

Name Type Description
RecordRef RecordRef
RecordVariant Variant
VATRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"
IsHandled Boolean

OnBeforeCheckVIESForVATNoField

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckVIESForVATNoField(var RecordRef: RecordRef, var VATRegistrationLog: Record "VAT Registration Log", RecordVariant: Variant, EntryNo: Code[20], CountryCode: Code[10], AccountType: Option, var VATNoFieldName: Text, var IsHandled: Boolean)

Parameters

Name Type Description
RecordRef RecordRef
VATRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"
RecordVariant Variant
EntryNo Code[20]
CountryCode Code[10]
AccountType Option
VATNoFieldName Text
IsHandled Boolean

OnBeforeInsertValidLogVerification

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertValidLogVerification(var VatRegistrationLog: Record "VAT Registration Log")

Parameters

Name Type Description
VatRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"

OnBeforeInsertInvalidLogVerification

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertInvalidLogVerification(var VatRegistrationLog: Record "VAT Registration Log")

Parameters

Name Type Description
VatRegistrationLog Table Microsoft.Finance.VAT.Registration."VAT Registration Log"

OnBeforeValidateVATRegNoWithVIES

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateVATRegNoWithVIES(var RecordRef: RecordRef, RecordVariant: Variant, EntryNo: Code[20], CountryCode: Code[10], AccountType: Option, var IsHandled: Boolean)

Parameters

Name Type Description
RecordRef RecordRef
RecordVariant Variant
EntryNo Code[20]
CountryCode Code[10]
AccountType Option
IsHandled Boolean

See also