i want to sum all debit and subtract credit from debit amount line by line.
like sum debit amount from top two rows and subtract credit from row 3,4 and show in ttl blnc column

function CF_ttl_blncFormula return Number is
result number:=0;
begin
result:= result + :debit - :credit;
return result;
end;