ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table Fin. Charge Comment Line OnBeforeCopyComments
Hi AL-team,
we have advanced comment logic and need a additional publisher. Can you add the Publisher as follows?
[External] CopyComments(FromType : Integer;ToType : Integer;FromNumber : Code[20];ToNumber : Code[20])
// NEW BEG
IsHandled := FALSE;
OnBeforeCopyComments(FinChrgCommentLine,ToType,IsHandled,FromType,FromNumber,ToNumber);
IF IsHandled THEN
EXIT;
// NEW END
FinChrgCommentLine.SETRANGE(Type,FromType);
FinChrgCommentLine.SETRANGE("No.",FromNumber);
IF FinChrgCommentLine.FINDSET THEN
REPEAT
FinChrgCommentLine2 := FinChrgCommentLine;
FinChrgCommentLine2.Type := ToType;
FinChrgCommentLine2."No." := ToNumber;
FinChrgCommentLine2.INSERT;
UNTIL FinChrgCommentLine.NEXT = 0;
LOCAL [IntegrationEvent] OnBeforeCopyComments(VAR FinChrgCommentLine : Record "Fin. Charge Comment Line";ToType : Integer;VAR IsHandled : Boolean;FromType : Integer;FromNumber : Code[20];ToNumber : Code[20])