...
OnValidate=BEGIN
GenJnlManagement.GetAccounts(Rec,AccName,BalAccName);
ShowShortcutDimCode(ShortcutDimCode);
END;
}
{ 11 ;Label ;0 ;0 ;0 ;0 ;ParentControl=10;
...
...
OnValidate=BEGIN
GenJnlManagement.GetAccounts(Rec,AccName,BalAccName);
ShowShortcutDimCode(ShortcutDimCode);
// Add the following line.
CheckRecipientBankAccount;
// End of the added line.
END;
}
{ 11 ;Label ;0 ;0 ;0 ;0 ;ParentControl=10;
...
...
SourceExpr="Reason Code" }
{ 70 ;Label ;0 ;0 ;0 ;0 ;ParentControl=69;
InColumnHeading=Yes }
{ 24 ;Frame ;220 ;6160 ;16060;1430 ;HorzGlue=Both;
VertGlue=Bottom;
ShowCaption=No }
...
...
SourceExpr="Reason Code" }
{ 70 ;Label ;0 ;0 ;0 ;0 ;ParentControl=69;
InColumnHeading=Yes }
// Add the following lines.
{ 1170000000;TextBox;76068;1980 ;1700 ;440 ;ParentControl=1;
InColumn=Yes;
SourceExpr="Recipient Bank Account" }
{ 1170000001;Label ;0 ;0 ;0 ;0 ;ParentControl=1170000000;
InColumnHeading=Yes }
// End of the added lines.
{ 24 ;Frame ;220 ;6160 ;16060;1430 ;HorzGlue=Both;
VertGlue=Bottom;
ShowCaption=No }
...
...
{ ID=1110051;
MenuLevel=1;
CaptionML=ENU=Export;
// Delete the following lines.
OnPush=BEGIN
// PT0007.begin
GenJnlLine.RESET;
GenJnlLine := Rec;
GenJnlLine.SETRANGE("Journal Template Name","Journal Template Name");
GenJnlLine.SETRANGE("Journal Batch Name","Journal Batch Name");
IF NOT GenJnlLine.FIND('-') THEN
ERROR(Text1110000);
GenJnlLine.TESTFIELD("Elect. Pmts Exported",FALSE);
REPORT.RUNMODAL(REPORT::"Export Electronic Payments",TRUE,FALSE,GenJnlLine);
// End of the deleted lines.
// PT0007.end
END;
}
...
...
{ ID=1110051;
MenuLevel=1;
CaptionML=ENU=Export;
// Add the following lines.
OnPush=VAR
Selection@1170000001 : Integer;
BEGIN
// PT0007.begin
GenJnlLine.COPYFILTERS(Rec);
GenJnlLine.SETRANGE("Journal Template Name","Journal Template Name");
GenJnlLine.SETRANGE("Journal Batch Name","Journal Batch Name");
GenJnlLine.SETRANGE("Bank Payment Type","Bank Payment Type"::"Electronic Payment");
GenJnlLine.SETRANGE("Elect. Pmts Exported",FALSE);
IF GenJnlLine.ISEMPTY THEN
ERROR(Text1100000);
Selection := STRMENU(ExportFormatTypeTxt,2);
CASE Selection OF
1:
BEGIN
IF ExportedPmtExist(GenJnlLine) THEN
IF NOT CONFIRM(ExportAgainQst) THEN
EXIT;
CheckDocNos(GenJnlLine);
CODEUNIT.RUN(CODEUNIT::"SEPA CT-Export File",GenJnlLine);
GenJnlLine.MODIFYALL("Export File Name",'');
GenJnlLine.MODIFYALL("Elect. Pmts Exported",TRUE);
END;
2:
BEGIN
GenJnlLine.TESTFIELD("Elect. Pmts Exported",FALSE);
REPORT.RUNMODAL(REPORT::"Export Electronic Payments",TRUE,FALSE,GenJnlLine);
END;
END;
// End of the added lines.
// PT0007.end
END;
}
...
...
// PT0007.end
END;
}
{ ID=65;
CaptionML=ENU=Void Check;
OnPush=BEGIN
...
...
// PT0007.end
END;
}
// Add the following lines.
{ ID=1170000002;
PushAction=RunObject;
MenuLevel=1;
CaptionML=ENU=Show Export File Errors;
RunObject=Form 1228;
RunFormLink=Journal Template Name=FIELD(Journal Template Name),
Journal Batch Name=FIELD(Journal Batch Name) }
// End of the added lines.
{ ID=65;
CaptionML=ENU=Void Check;
OnPush=BEGIN
...