Netsuite 批票据-提交Id
我需要从netsuite获取对象的批账单提交id(来自不同的供应商)。有人知道怎么做吗Netsuite 批票据-提交Id,netsuite,Netsuite,我需要从netsuite获取对象的批账单提交id(来自不同的供应商)。有人知道怎么做吗 TransactionSearchBasic transSearch = new TransactionSearchBasic(); SearchResult resVendorBill = service.search(transSearch); resVendorBill.pageSize = 25; resVendorBi
TransactionSearchBasic transSearch = new TransactionSearchBasic();
SearchResult resVendorBill = service.search(transSearch);
resVendorBill.pageSize = 25;
resVendorBill.pageSizeSpecified = true;
resVendorBill.totalRecords = SearchRecentTransCount;
resVendorBill.totalRecordsSpecified = true;
transSearch.recordType = new SearchStringField() { @operator = SearchStringFieldOperator.@is, searchValue = "vendorpayment", operatorSpecified = true };
SearchResult resVendorPayment = service.search(transSearch);
if (resVendorPayment.status.isSuccess)
{
Record[] searchPaymentRecords = resVendorPayment.recordList;
if (searchPaymentRecords != null && searchPaymentRecords.Length >= 1)
{
List<VendorPayment> lstVendorPayments = searchPaymentRecords.Select(ep => (VendorPayment)ep).OrderByDescending(epo => epo.createdDate).Take(SearchRecentTransCount).ToList();
}
}
TransactionSearchBasic transSearch=新建TransactionSearchBasic();
searchresvendorbill=service.search(transSearch);
resVendorBill.pageSize=25;
resVendorBill.pageSizeSpecified=true;
resVendorBill.totalRecords=SearchRecentTransCount;
resVendorBill.totalRecordsSpecified=true;
transSearch.recordType=new SearchStringField(){@operator=SearchStringFieldOperator@is,searchValue=“vendorpayment”,operator specified=true};
SearchResult resVendorPayment=service.search(transSearch);
if(重新销售付款状态isSuccess)
{
记录[]searchPaymentRecords=resVendorPayment.recordList;
if(searchPaymentRecords!=null&&searchPaymentRecords.Length>=1)
{
列出lstVendorPayments=searchPaymentRecords.Select(ep=>(VendorPayment)ep.OrderByDescending(epo=>epo.createdDate).Take(SearchRecentTransCount.ToList();
}
}