...
CurrReport.CREATETOTALS(Amount,IcreasesAmnt,DecreasesAmnt,"Additional-Currency Amount");
END;
// Delete the following lines.
OnAfterGetRecord=BEGIN
CALCFIELDS(Amount,"Debit Amount","Credit Amount","Additional-Currency Amount");
IF NOT UseAmtsInAddCurr THEN BEGIN
Amnt := Amnt + Amount;
IF Amount > 0 THEN
IcreasesAmnt := Amount
ELSE
DecreasesAmnt := ABS(Amount);
END ELSE BEGIN
Amnt := Amnt + "Additional-Currency Amount";
IF "Additional-Currency Amount" > 0 THEN
IcreasesAmnt := "Additional-Currency Amount"
ELSE
DecreasesAmnt := ABS("Additional-Currency Amount");
END;
// End of the lines.
END;
DataItemLinkReference=G/L Account;
...
...
CurrReport.CREATETOTALS(Amount,IcreasesAmnt,DecreasesAmnt,"Additional-Currency Amount");
END;
// Add the following lines.
OnAfterGetRecord=VAR
GroupAmount@1130001 : Decimal;
BEGIN
CALCFIELDS(Amount,"Debit Amount","Credit Amount","Additional-Currency Amount");
IF TempGLBookEntry.GET("Entry No.") THEN
CurrReport.SKIP
ELSE BEGIN
GroupAmount := GroupBookEntry("GL Book Entry",UseAmtsInAddCurr);
Amnt += GroupAmount;
IF GroupAmount > 0 THEN BEGIN
IcreasesAmnt := ABS(GroupAmount);
DecreasesAmnt := 0;
END ELSE BEGIN
IcreasesAmnt := 0;
DecreasesAmnt := ABS(GroupAmount);
END;
END;
// End of the lines.
END;
DataItemLinkReference=G/L Account;
...