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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking a Check from PM30300 to PM30200 1

Status
Not open for further replies.

adhlssu07

Programmer
Mar 12, 2009
3
US
Hello,

I am working on using SQL in GP10 to pull the following information for all of the invoices on a particular check:

Invoice Number (docnumbr?)
Outstanding Amount (?)
Net Paid Amount (APFRMAPLYAMT?)
Discount Taken (APFRMDISCTAKEN)
Net Check Amount (?)

I also need information off of the check header. I have found most of this data on the "Apply To History" table (PM30300), but I have a feeling that I will need to join on the invoice header record from PM30200 (and possibly PM20000 as well). I'm trying to figure out where the join points are and which columns are best to look at for each of these pieces of data.

Thanks in advance for any help you can provide.
 
Victoria,

Thanks so much! Your blog has been hugely useful, and I looked at this post and didn't think it did what I wanted... I'm taking a closer look.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top