Interested in creating and selling training? You pick the price, 50/50 revenue share, and you own the content. Find out more at
Hi guys,
There is a existing question here..
but the question is not yet answered.
here's my query:
--1st Query select a.JOURNALNAME, a.JOURNALNUM, b.VOUCHER, b.TXT, b.BANKCHEQUENUM, b.AMOUNTCURDEBIT, c.INVOICE from LEDGERJOURNALTABLE a inner join LEDGERJOURNALTRANS b on a.JOURNALNUM = b.JOURNALNUM left join VENDTRANS c on b.VOUCHER = c.VOUCHER --b.VENDTRANSID = c.RECID left join VENDTRANSOPEN d on c.ACCOUNTNUM = d.ACCOUNTNUM and c.RECID = d.REFRECID where a.JOURNALNUM = '006004' --2nd Query select a.JOURNALNAME, a.JOURNALNUM, b.VOUCHER, b.TXT, b.BANKCHEQUENUM, b.AMOUNTCURDEBIT, c.INVOICE, b.INVOICE from LEDGERJOURNALTABLE a inner join LEDGERJOURNALTRANS b on a.JOURNALNUM = b.JOURNALNUM left join VENDTRANS c on b.VENDTRANSID = c.RECID left join SPECTRANS e on c.RECID = e.SPECRECID left join VENDSETTLEMENT f on c.RECID = f.TRANSRECID and c.RECID = f.OFFSETRECID where a.JOURNALNUM = '006004'
my problem is , i can't get the invoice number ..
because i want get the invoice number of marked transaction in the settlement of payment journal