我使用Suitetalk C#从Netsuite获取数据。
就我而言,我需要将Vendor Credit数据提取到我的应用程序。所以,我创建了一种搜索方法,但我不知道如何应用这样的搜索条件:
1)我只需要提取未应用的供应商信用。
2)我只需在供应商账单清单中提取应用供应商信用。
答案 0 :(得分:1)
为此,我将从UI
创建一个已保存的事务搜索1)未应用的供应商信用
Applied to Transaction is -None-
2)100%申请供应商信用 标准为
A) Formula (Numeric) {amount} + {appliedtolinkamount} is 0
B) Applied to Link Amount is greater than 0.0
3)应用(部分或全部)
Applied to Transaction is not -None-
在每次搜索中,您都需要输入type is Bill Credit
和Main Line is true
然后我会从UI获取已保存的搜索ID,然后使用下面的伪代码通过SuiteTalk获取搜索结果
// Create a service
NetSuiteService nss = new NetSuiteService();
// Perform the search. Note that you can get the saved search ID using
// either getSavedSearch() or through the UI
TransactionSearchAdvanced tsa1 = new TransactionSearchAdvanced();
tsa1.savedSearchId="57"; //substitute your own saved search internal ID
nss.search(tsa1);