Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2801

Re: % of open invoices by service month

$
0
0

I changed the formula a bit as I was not getting the correct percentage, I just divided the open by the total and it worked. Select Sum(T0.DocTotalSy) as 'Total Invoices', Sum(T1.DocTotalSy - T1.Paidsys) as 'Total Open', (( Sum(T1.DocTotalSy - T1.Paidsys) / Sum(T0.DocTotalSy)) * 100) From OINV T0 left outer join oinv T1 on t0.docentry = t1.docentry and T1.DocStatus = 'O' Where T0.[TaxDate] between  '2016/06/01' and  '2016/06/30'


Viewing all articles
Browse latest Browse all 2801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>