select sum(total) from fin_ledger where and vid='' and isdel=0 and (src='INV' or src='DN' or src='SDN' or src='VOD' or src='VOU') and (type='SALES' or type='OTHER INCOME' or type='DISCOUNT') failed: