...
Open=CONST(Yes));
OnPreDataItem=BEGIN
"Cust. Ledger Entry".SETRANGE("Document Date",FromDate,ToDate);
// Delete the following line.
"Cust. Ledger Entry".SETRANGE("Bal. Account Type","Cust. Ledger Entry"."Bal. Account Type"::"G/L Account");
// End of the line.
END;
OnAfterGetRecord=BEGIN
...
...
Open=CONST(Yes));
OnPreDataItem=BEGIN
"Cust. Ledger Entry".SETRANGE("Document Date",FromDate,ToDate);
// Add the following lines.
"Cust. Ledger Entry".SETFILTER(
"Bal. Account Type",
'%1|%2',
"Cust. Ledger Entry"."Bal. Account Type"::"G/L Account",
"Cust. Ledger Entry"."Bal. Account Type"::"Bank Account");
// End of the lines.
END;
OnAfterGetRecord=BEGIN
...
...
OnAfterGetRecord=BEGIN
// Delete the following lines.
IF NOT IsCashAccount("Cust. Ledger Entry"."Bal. Account No.") THEN
CurrReport.SKIP;
// End of the lines.
END;
GroupTotalFields=Customer No.;
...
...
END;
OnAfterGetRecord=BEGIN
// Add the following lines.
IF "Bal. Account No." <> '' THEN BEGIN
IF NOT IsCashAccount(RetrieveBalAccount("Cust. Ledger Entry")) THEN
CurrReport.SKIP;
END ELSE
IF NOT HasCashAccount("Cust. Ledger Entry") THEN
CurrReport.SKIP;
// End of the lines.
END;
GroupTotalFields=Customer No.;
...