Skip to content

KVSADVCopyDocumentMgtPurch#

Events#

OnBeforeCheckAdvanceDocAllowedForCopy(Option, Code[20], Record Purchase Header) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCheckAdvanceDocAllowedForCopy(FromDocumentType: Option; FromDocumentNo: Code[20]; var ToDocumentHeader: Record "Purchase Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVCopyDocumentMgtPurch", 'OnBeforeCheckAdvanceDocAllowedForCopy', '', false, false)]
local procedure DoSomethingOnBeforeCheckAdvanceDocAllowedForCopy(FromDocumentType: Option; FromDocumentNo: Code[20]; var ToDocumentHeader: Record "Purchase Header")
begin
end;

OnAfterTransferAdvFieldsBetweenDocumentHeader(Record Purchase Header, Record Purchase Header) :#

[IntegrationEvent(false, false)]
local procedure OnAfterTransferAdvFieldsBetweenDocumentHeader(var ToDocumentHeader: Record "Purchase Header"; OldDocumentHeader: Record "Purchase Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVCopyDocumentMgtPurch", 'OnAfterTransferAdvFieldsBetweenDocumentHeader', '', false, false)]
local procedure DoSomethingOnAfterTransferAdvFieldsBetweenDocumentHeader(var ToDocumentHeader: Record "Purchase Header"; OldDocumentHeader: Record "Purchase Header")
begin
end;

OnAfterInitDocumentLineAdvanceFieldsFromNewHeader(Record Purchase Line, Record Purchase Header) :#

[IntegrationEvent(false, false)]
local procedure OnAfterInitDocumentLineAdvanceFieldsFromNewHeader(var ToDocumentLine: Record "Purchase Line"; var ToDocumentHeader: Record "Purchase Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSADVCopyDocumentMgtPurch", 'OnAfterInitDocumentLineAdvanceFieldsFromNewHeader', '', false, false)]
local procedure DoSomethingOnAfterInitDocumentLineAdvanceFieldsFromNewHeader(var ToDocumentLine: Record "Purchase Line"; var ToDocumentHeader: Record "Purchase Header")
begin
end;