Welcome, Guest. Please Login.
06/04/25 at 18:50:21
News:
Home Help Search Login


Pages: 1
Send Topic Print
Tracking when an invoice received for a PO (Read 363 times)
lenny_baledge
Browser
*




Posts: 6
Gender: male
Tracking when an invoice received for a PO
09/28/07 at 11:50:18
 
Hello,
 
I am trying to create a custom report and I have been unable to locate the table that ties invoices entered to POs. I'm wanting to do something like this:
 
SELECT all_invoices FROM "<some_table>"
WHERE po_applied_to = '1234'
 
After some quick looking about I found what appears to be the invoices table "BKAPINVT", but the only place I found the PO entered into this was in the description field BKAP_INVT_DESC. That description that can be modified by my employees thus not really safe to use as a key I think, as they could create a typo or change the format.  
 
I assume there has to be another table tying these two pieces of information together & I have overlooked it.
 
The end goal is really to find out when we have paid for a particular set of part_numbers. I know which POs we placed with these part numbers so knowing when a payment has been made on a PO will get me where I'm going. Realize of course that there can be several invoices on one PO so the table must have a one->many relationship somewhere.
 
Any hints on what tables to look at would be greatly appreciated.
 
Thanks,
 
Lenny
 
 
 
Back to top
 
 

DBA Classic, 2000i
WWW   IP Logged
Lynn_Pantic
Administrator
*****


evolution (n) -
gradual change to a
different form

Posts: 5663
Re: Tracking when an invoice received for a PO
Reply #1 - 09/28/07 at 15:00:34
 
Depends what version of DBA you have.  Older versions (pre-2002) had no such tracking.  The PO module was overhauled in early 2002 and at that point, the invoice number was added to the BKAPHPOL file at the time the invoice is entered in AP-C - field BKAP.POL.INVNM.  So any version from 2002.1 or later including the current version with IS Tech updates has this tracking.
Back to top
 
 

Lynn Pantic
IS Tech Support
lynn@istechsupport.com
Email   IP Logged
lenny_baledge
Browser
*




Posts: 6
Gender: male
Re: Tracking when an invoice received for a PO
Reply #2 - 10/01/07 at 07:22:37
 
Lynn,
 
Thanks,  
 
I'll check into this. I have resisted most updates as what we have has worked well for us, but it may be time to do so.
 
....Just checked. No bkap_pol_invnm.
 
Thanks
 
Lenny
Back to top
 
 

DBA Classic, 2000i
WWW   IP Logged
Pages: 1
Send Topic Print