NAV REPORT

i HAVE THIS CODE IN MY REPORT AND A BREAK ALL OTHER FUNCTIONALITIES BREAK ON THE PAGE BREAK BUT THE CALCULATION ARE NOT BREAKING PER PAGE BREAK ANY ONE TO HELP WILL APPRICIATE
Posted Settlement Add./Ded. - OnPreDataItem()
{
TotBonusClasses:=0;
TotBonusClasses2:=0;
}

Posted Settlement Add./Ded. - OnAfterGetRecord()

IF "Posted Settlement Add./Ded.".Code IN ['PIG-BNS-C1','PIG-BNS-C2','PIG-BNS-C3','PIG-BNS-C4'] THEN
BEGIN
TotBonusClasses:=TotBonusClasses + Amount;
CurrReport.SKIP;
END;

IF "Posted Settlement Add./Ded.".Code IN ['ADV-BONUS1','ADV-BONUS2','ADV-BONUS3','ADV-BONUS4','ADV-BONUS5','ADV-BONUS6'] THEN
BEGIN
TotBonusClasses2:=TotBonusClasses2 + Amount;
CurrReport.SKIP;
END;

Related
Recommended