REPORTFORM;RF3_E.frf
TITLE;RECEIVE FG BY DEPARTMENT,DATE REPORT
SQL;select invcard.DOCNO, invcard.ID, invmst.XDESC,
SQL;invcard.QUAN, invcard.UNIT, invcard.COST, 
SQL;invcard.COSTAMT,invcard.LOCID, invcard.DATEDOC,
SQL;recfinhd.REFNO,recfinhd.DPTID,depart.DDESC
SQL;from invcard 
SQL;left join invmst on invcard.ID = invmst.ID
SQL;left join recfinhd on invcard.DOCNO = recfinhd.DOCNO
SQL;left join depart on recfinhd.DPTID = depart.DID
SQL;where left(invcard.DOCNO,2) = "RF"
SQL;order by invcard.DPTID, invcard.DATEDOC, invcard.DOCNO,invcard.ID ,invmst.XDESC
CONDITION;FROM DPT ID~INVCARD.DPTID ~Chr~2~SELECT DID FROM DEPART~DEP
CONDITION;FROM DATE~INVCARD.DATEDOC ~Date~2~~
