0
我想要做的似乎基本,應該是直接的,但我顯然做錯了什麼。我只想返回基於tranid的銷售訂單對象。我的代碼如下Netsuite PHP工具包找到基於tranid的銷售訂單
require_once ('netsuite/PHPToolkit/NetSuiteService.php');
$ns = new NetSuiteService();
$ns->setSearchPreferences(false, 20);
$search = new TransactionSearchBasic();
$needle = new SearchStringField();
$needle->operator = "is";
$needle->searchValue = "SO1047429";
$search->tranid = $needle;
$req = new SearchRequest();
$req->searchRecord = $search;
try {
$res = $ns->search($req);
} catch (Exception $e) {
print_r ($e);
exit;
}
print_r ($res);
的問題是,這是回訪,每次我們在NetSuite的記錄....
SearchResponse Object
(
[searchResult] => SearchResult Object
(
[status] => Status Object
(
[statusDetail] =>
[isSuccess] => 1
)
[totalRecords] => 3569384
[pageSize] => 20
[totalPages] => 178470
我希望另一雙眼睛在這裏可以發現我的錯誤,因爲它讓我瘋狂。