SQL Table for batch history? AKA Batches not located in GL_CompanyActiveBatch?

Hello, 

I am creating a report for our accounting department which shows all A/P batches that either remain open, or were created today. I have the first part, where I can pull up all active batches through GL_CompanyActiveBatch. However, I am having some difficulty finding a good way to extract batches that were made today, but are no longer active (already posted/completed). Below is my working code to the first part: 

select batchno, recordcount,DateCreated, u.UserLogon
from GL_CompanyActiveBatch c
left join SY_User u
on c.UserCreatedKey = u.UserKey
where ModuleCode = 'A/P'

I have tried both GL_DailyPosting and GL_detailPosting for the second part but can't get results. Any help would be much appreciated.  

*(We use sage 100 Premium 2018)

Thanks, 

Parents Reply
  • 0 in reply to BShockley

    Hey Brian,

    I've always wondered why that batch number doesn't flow to AP_InvoiceHistoryHeader. I don't know if this would help but I suppose one could make it flow using Custom Office UDFs.

    I also see the AP Invoice Number as the DocumentNo in GL_DetailPosting, but I guess that didn't work.

    One last, crazy, thought. If they are using Paperless Office maybe they could tie in PL_JournalPDFLog.

Children