Field Name: status- This is a read-only field. Defaults to the value set up on the Company Preference page. If your company uses the approval process for sales orders, Pending Approval is the default. If your company does not use the approval process, Pending Fulfillment is the default.
Field Name: pending- A read-only field that returns the sum of unapproved credit card payments for the customer.
Sample code to set the status and transaction date:
-------------------------------------------------------------------------------------------
// set the transaction date and status
so.tranDate = new System.DateTime();
so.orderStatus = SalesOrderOrderStatus._pendingApproval;
OR
// set the transaction date and status
so.setTranDate(Calendar.getInstance());
so.setOrderStatus(SalesOrderOrderStatus._pendingApproval);
3
Hi Raj,
I was tried like this,but can get records tell me if i´m wrong
TransactionSearchBasic tsb=new TransactionSearchBasic();
SearchStringField ssf=new SearchStringField("purchaseOrder",SearchStringFieldOperator.is);
tsb.setRecordType(ssf);
String[] status={PurchaseOrderOrderStatus.__pendingReceipt};
tsb.setStatus(status);
To apply filter on search you can use following code. Below is the search filter to apply when trying to find Pending Fulfillment Sales Orders.
new nlobjSearchFilter(´status´,null,´is´,´SalesOrd:B´)
and to set the status of a sales order as pending approval
nlapiSubmitField(´salesorder´,soID,´orderstatus´,´A´,false);
and code for purchase order pending receipt is:
Purchase Order:Pending Receipt=PurchOrd:B