Payment type totals

For users or potential users.
Post Reply
drtmz
Posts: 84
Joined: Thu May 29, 2008 4:27 pm

Payment type totals

Post by drtmz » Fri Feb 13, 2009 2:19 am

Can anyone direct me to a report or query that will total the payments received by payment type?
I would like to generate a total of all the payments by cash, credit card and personal check for the year 2008.

Thanks.
DRTMZ

mowgli
Posts: 134
Joined: Fri Sep 14, 2007 1:42 pm

Re: Payment type totals

Post by mowgli » Fri Feb 13, 2009 6:24 am

Try running this in the user query window:

set @startdate = '2008-01-01', @enddate = '2008-12-31';
select PayType, sum(payamt) $Total from payment where paydate between @startdate and @enddate group by paytype

Just edit dates at top for whatever range you want; format is YYYY-MM-DD.

drtmz
Posts: 84
Joined: Thu May 29, 2008 4:27 pm

Re: Payment type totals

Post by drtmz » Fri Feb 13, 2009 3:34 pm

Perfect. Exactly what I was looking for.

DRTMZ
Tom Zaccaria

Post Reply