REPORTFORM;DP2_E.frf
TITLE;CREDIT NOTE BY VENDOR REPORT
SQL;select apcard.DOCNO, apcard.DATEDOC, apcard.REFNO,
SQL;apcard.ACCID, apmst.XCOMP, apcard.AMOUNT_D, apcard.DPTID,
SQL;apcard.TAXNO
SQL;from apcard
SQL;left join apmst on apcard.ACCID = apmst.ACCID
SQL;where left(apcard.TRTYPE,2)= "DP"
SQL;order by apcard.ACCID, apcard.DOCNO, apcard.DATEDOC
CONDITION;FROM VENDOR CODE~APCARD.ACCID ~Chr~2~SELECT ACCID FROM APMST~AP
CONDITION;FROM DATE~APCARD.DATEDOC ~Date~2~~
