Table of Content
HAL Forum
function val GetBalance (
record FileName,string string,Date d)
Description:
Returns amount from Support Register
Parameters:
FileName Support Register Vc,Variable of Record Type in example it is ObjBalVc Record
string Support Register Column Name
d Date, Amount will be read from the Month
global
procedure GetAccountSumDanTR(string accnumber,Date TransDate,var val resp)
BEGIN
  record ObjBalVc ObjBalr;
  val t;
  
  resp = blankval;
  ObjBalr.AccNumber = accnumber;
  if (ReadFirstMain(ObjBalr,1,true)) then begin  
    resp =  GetBalance(ObjBalr,"transdebit",TransDate);  
    t =  GetBalance(ObjBalr,"transcredit",TransDate);      
    resp = resp - t;
  end;    
  RETURN;
END;
Related topics:
««