Skip to content

KVSADVCopyDocumentMgtSales#

Events#

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

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

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

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

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

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