Sage 300 - sql query for recalculating AP Balances - reconciling to GL

Hi, I am trying to determine why my GL and AP control accounts dont balance.

Yes, I know I can isolate GL only transactions from my control account, but I would like to build a more robust answer.

To this end, I would like to build a query in sql views that recalculates a vendors balance based on the invoices and payments that have processed.

I am sure someone has done this, but hoping someone might share their query.

Thanks

JCS

Parents Reply
  • 0 in reply to Jay Converse Acumen
    Looking at APPJD, it has the values I want...I see that...but the GL Batch id and entry numbers are blank....if APPJD and APPJH are linked (and of course they are, as APPJH is the header record)....how are they actually linked? I keep getting data explosions as I try to link them....and I am now just isolating these two tables together. I figure if I can work this out, then I can bring the APOBL table in later.
Children