Hi there
I need to create a view like gl transaction listing report for bank accounts (11... or 12...) but instead of showing the account transaction I need to see the transaction which the account is dealing with. Some thing like:
SELECT GLPOST_1.ACCTID, GLPOST_1.FISCALYR, GLPOST_1.FISCALPERD,
GLPOST_1.SRCECURN, GLPOST_1.SRCELEDGER, GLPOST_1.SRCETYPE, GLPOST_1.CNTDETAIL, dbo.GLPOST.JRNLDATE, dbo.GLPOST.BATCHNBR,
dbo.GLPOST.ENTRYNBR, dbo.GLPOST_1.TRANSAMT, dbo.GLAMF.ACCTDESC
FROM dbo.GLPOST INNER JOIN
dbo.GLPOST AS GLPOST_1 ON dbo.GLPOST.BATCHNBR = GLPOST_1.BATCHNBR AND dbo.GLPOST.ENTRYNBR = GLPOST_1.ENTRYNBR AND
dbo.GLPOST.CNTDETAIL <> GLPOST_1.CNTDETAIL INNER JOIN
dbo.GLAMF ON dbo.GLPOST.ACCTID = dbo.GLAMF.ACCTID
WHERE (dbo.GLPOST.ACCTID LIKE '11%' OR
dbo.GLPOST.ACCTID LIKE '12%') and GLPOST.JRNLDATE BETWEEN 20100101 AND 20100131
But this query is failing somewhere because I'm not having the same total as the net change of gl transation listing report for the same period.
Please help
I need to create a view like gl transaction listing report for bank accounts (11... or 12...) but instead of showing the account transaction I need to see the transaction which the account is dealing with. Some thing like:
SELECT GLPOST_1.ACCTID, GLPOST_1.FISCALYR, GLPOST_1.FISCALPERD,
GLPOST_1.SRCECURN, GLPOST_1.SRCELEDGER, GLPOST_1.SRCETYPE, GLPOST_1.CNTDETAIL, dbo.GLPOST.JRNLDATE, dbo.GLPOST.BATCHNBR,
dbo.GLPOST.ENTRYNBR, dbo.GLPOST_1.TRANSAMT, dbo.GLAMF.ACCTDESC
FROM dbo.GLPOST INNER JOIN
dbo.GLPOST AS GLPOST_1 ON dbo.GLPOST.BATCHNBR = GLPOST_1.BATCHNBR AND dbo.GLPOST.ENTRYNBR = GLPOST_1.ENTRYNBR AND
dbo.GLPOST.CNTDETAIL <> GLPOST_1.CNTDETAIL INNER JOIN
dbo.GLAMF ON dbo.GLPOST.ACCTID = dbo.GLAMF.ACCTID
WHERE (dbo.GLPOST.ACCTID LIKE '11%' OR
dbo.GLPOST.ACCTID LIKE '12%') and GLPOST.JRNLDATE BETWEEN 20100101 AND 20100131
But this query is failing somewhere because I'm not having the same total as the net change of gl transation listing report for the same period.
Please help