Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get AR Customer Total Outstanding Balance 1

Status
Not open for further replies.

bodlela

Programmer
Oct 22, 2009
45
MZ
Hi All
I wonder how Accpac calculates the Total Outstanding Balance we see on the "AR Customer Inquiry - Credit Status Tab". I need to be able to get the same figure from SQL queries.
Please advice.
 
Hi Ettiene
Thanks for replying. I understand ARCUS.AMTBALDUET/AMTBALDUEH refers to Outstanding AR Balance but I need the Total Outstanding Balance which include the AMTBALDUEH/AR/OE/Other pending balance.
Please advice
 
Sum ARIBH.AMTINVCTOT where DATEBUS=0, and OEORDH.ORDTOTAL where COMPLETE<3
 
Hi Tuba2007
Thanks for responding. I am following your suggestion but I still cannot get the same figure as the Accpac is showing for O/E pending balance.
"select * from ARIBH where IDCUST='XXX' and DATEBUS=0" retuns no rows.
"select SUM (ordtotal) from OEORDH where customer='XXX' and COMPLETE<3" returns a value different from O/E pending balance showed on that screen.

PLease advice
 
Another way to tackle this is to create a new customer in sample data and add a transaction in OE. Then start rvSpy with dbSpy and open the screen showing the balance that you're trying to get.
 
Hi DjangMan,
You are the man. Thanks a lot
BR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top