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

Paid Invoices? 1

Status
Not open for further replies.

Borvik

Programmer
Jan 2, 2002
1,392
US
OK - here's a quick question.

I'm looking for all invoices (in a certain date range) that have been paid. I'm uncertain as to what would be the best way to determine if an invoice is paid.

I was thinking to do one of the following:

1) Take the Invoice DOCAMNT - PYMTRCVD > 0 (not paid)

OR

2) Search for Invoice number in the RM10101, RM20101, RM30101 tables (DOCNUMBR field). -Add up and compare to DOCAMNT.

OR - Suggest something.

Of the two - if either will work of course - it looks like 1) would be the best choice.

I guess the question is - what is the best way to determine if an invoice has been paid.
 
In smart list, sales transaction
you could chose docamount and paiment receive (something like this.

you could precise your query how you whant after that

TheKnee
 
Ah - but this I am not running the query in Great Plains.

I'm writing my own program to generate a csv file. I need to use SQL.
 
Use the Apply to Table..PM30300 and use the APTODCNM and APTODCTYP (=1 for Invoice)
 
I didn't look closely enough, the tables I gave you where for Pm not Rm ...use RM20201 or RM30201 if you have moved transaction to history.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top