...
CaptionML=ENU=Print ESR Journal;
Promoted=Yes;
PromotedCategory=Report;
// Delete the following lines.
OnAction=BEGIN
REPORT.RUN(REPORT::"Customer ESR Journal",TRUE,FALSE,Rec);
// End of the deleted lines.
END;
}
{ 59 ;1 ;ActionGroup;
...
...
CaptionML=ENU=Print ESR Journal;
Promoted=Yes;
PromotedCategory=Report;
// Add the following lines.
OnAction=VAR
TempGenJnlLine@1150000 : Record 81;
BEGIN
TempGenJnlLine.COPY(Rec);
TempGenJnlLine.SETRANGE("Journal Template Name","Journal Template Name");
TempGenJnlLine.SETRANGE("Journal Batch Name","Journal Batch Name");
REPORT.RUN(REPORT::"Customer ESR Journal",TRUE,FALSE,TempGenJnlLine);
// End of the added lines.
END;
}
{ 59 ;1 ;ActionGroup;
...