Sooo.... uhmm... how do we determine the status of a purchase order? Pending Bill? Pending Receipt? Etc?
From the help it would appear that there are NO exposed and supported fields to determine the status but the DEBUGGER tells another story, HA!
_eml_nkey_ = {number} 4525849 balreadyrefunded = {string} F billaddress = {string} Stephen Bird 2671 Freeland Circle Naperwille, IL 60564 billaddresslist = {number} 4444 billisresidential = {string} F cleared = {string} F companyid = {number} 3812 createddate = {string} 4/15/2009 4:15 pm createdfrom = {number} 29573 currency = {number} 1 currencyprecision = {number} 2 custbody_specorderpatient = {string} RODEN, MICHAEL - ****3883 customform = {number} 117 dbstrantype = {string} PurchOrd department = {number} 2 edition = {string} US email = {string} stephenbird@sbcglobal.net entity = {number} 3812 entityfieldname = {string} entity entityname = {string} PT Medical exchangerate = {number} 1 fax = {string} (630) 922-1093 haslines = {string} id = {number} isadvbill = {string} isbasecurrency = {string} istransforming = {string} lastmodifieddate = {string} linked = {string} linkedclosedperioddiscounts = {string} location = {number} needsbill = {string} needsshiprecv = {string} nlapiCC = {string} <strong>ordbilled = {string} orderstatus = {string} ordpartrecvd = {string} ordrecvd = {string}</strong> originator = {string} origtotal = {number} origtotal2 = {number} partnerid = {number} prevdate = {string} shipaddress = {string} shipdate = {string} shipisresidential = {string} shipmethod = {number} shipto = {number} source = {string} specord = {string} <strong>status = {string} statusRef = {string}</strong> subsidiary = {number} templatestored = {string} tobeemailed = {string} tobefaxed = {string} tobeprinted = {string} total = {number} trandate = {string} tranid = {number} type = {string} validationpending = {string} version = {number} voided = {string} weekendpreference = {string} oooooh come on...? 6 different status-related fields? Really??orderstatus = {string} F After looking at some of my other code this appears to be the status for Pending BillingI had originally written something else and after digging around realized that orderstatus (like the salesorder) is the field I want. From some rarely looked at code I found this:var TRANS_STATUS = { PEND_APPROVAL : 'A', PEND_FULFILL : 'B', CANCELLED : 'C', PART_FULFILL : 'D', PART_RECV : 'D', PEND_BILL_PART_RECV : 'E', PEND_BILLING : 'F' };Are there any other values I should know about?