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!

SQL - Did document invoice

Status
Not open for further replies.

Borvik

Programmer
Jan 2, 2002
1,392
US
Hey all,

Finding whether a sales document invoiced is easy enough in GP.

My question is - what is the simplest way to find out whether a document invoiced using SQL?

Currently I'm using multiple SQL statements to figure it out. One to get the document (from a search), and another to lookup ORIGNUMB with SOPTYPE=3 to see if it invoiced.

Looking around at the database, I think it might be possible to use the TRXSORCE field (blank not invoiced - TRANSFER invoiced?).

I'm hoping to get it down to only one sql statement.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top