I have a client who created the query below to give her a list of checks, EFT, Credit Card and Cash Payments to give her a report for her auditors.
The problem with this query is that it does not report a check number for a check that was voided because the stub description exceeds the height of the stub.
select
case when t0.trsfrsum <> 0 then 'EFT' else
case when t0.creditsum <> 0 then 'Credit Card' else
case when t0.cashsum <> 0 then 'Cash Pmt' else
case when t0.checksum <> 0 then 'Check'
End End End End as 'Pmt Method',
t0.docdate as 'Date', t0.cardcode, t0.cardname as 'Payee Name',
t1.checknum as 'Check #', t0.doctotal as 'Amount'
from Ovpm t0
left outer join vpm1 t1 on t1.docnum=t0.docnum
where t0.[docdate] >= [%0] and t0.[docdate] <= [%1]
order by 'Pmt Method', t0.docdate
I asked them to see if changing the print preferences show that the excess prints on a blank page and they will try that but I wanted to ask if there is a simple way to change this to report the missing check numbers.
Thank you.