Quantcast
Channel: SCN : Unanswered Discussions - Reporting and Printing
Viewing all articles
Browse latest Browse all 776

Need to add Account balance to this query

$
0
0

Can someone advise how I can add the account balance to this query. Thanks Danielle SELECT distinct T0.[DocNum], T0.[DocDate], T0.[CardCode]"Customer Code",  T0.[CardName], t0.doctotal"Total Payment", T0.[PayNoDoc]"payment on account", isnull(t0.openbal, '0')"Not reconciled", t0.nodocsum"Total before partial reconcile", t0.nodocsum-t0.openbal as 'Reconcile Amount' FROM [dbo].[ORCT]  T0 left JOIN RCT2 T1 ON T0.Docnum = T1.DocNum WHERE T0.[PayNoDoc] = 'y'  and isnull(t0.openbal,'0') <> '0' and t0.doctype = 'c'


Viewing all articles
Browse latest Browse all 776

Trending Articles



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