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
    Thanks Jay...ok I brought in the GL Batch # and GL entry numbers, but now I am confused, and I wonder if it is because I am using the amount field AMTDUEHC as opposed to adding invoice and payment amounts together.....

    The good news I have a query that shows the correct balance owing, and this balance while large (over $6M) is only $80.53 different from my GL Balance....

    however using the Fiscal Period and Fiscal year fields, this balance is composed over time very differently than the GL balance by period...but again same result at the end.

    Thats why I wanted to use GL Batch #/entry number to again compare to the GL....and when I do this, the net amounts per GL Batch/entry number do not agree with the GL version (by batch/entry number).....but I am guessing, its because I am using the AMTDUEHC field in both cases. Does this make sense?
Children