税コード (SalesTaxItem) には検索インターフェイスがないため、getAll 関数を使用します。
しかし、一部のユーザーでは、「そのレコードは存在しません」というエラー メッセージが表示されます。[totalRecords] = 67 ですが。
私の最初の質問: では、どうすればこのエラーを回避できますか?
これは GetAllResponse オブジェクトの構造です
(
[getAllResult] => GetAllResult Object
(
[status] => Status Object
(
[statusDetail] => Array
(
[0] => StatusDetail Object
(
[code] => RCRD_DSNT_EXIST
[message] => That record does not exist.
[type] => ERROR
)
)
[isSuccess] =>
)
[totalRecords] => 67
[recordList] =>
)
)
2 番目の質問: 成功すると、SalesTaxItem リストを受け取ります。ただし、サブリストはありません。各 SalesTaxItem の補助リストを取得するにはどうすればよいですか?
[getAllResult] => GetAllResult Object
(
[status] => Status Object
(
[statusDetail] =>
[isSuccess] => 1
)
[totalRecords] => 68
[recordList] => RecordList Object
(
[record] => Array
(
[0] => SalesTaxItem Object
(
[itemId] => tax company 15
[displayName] =>
[description] =>
[rate] => 1.00%
[taxType] => RecordRef Object
(
[internalId] => -75
[externalId] =>
[type] =>
[name] => Other 25 Sales Tax
)
[taxAgency] => RecordRef Object
(
[internalId] => 1285
[externalId] =>
[type] =>
[name] => Store Tax Agency
)
[purchaseAccount] =>
[saleAccount] =>
[isInactive] =>
[effectiveFrom] =>
[validUntil] =>
[eccode] =>
[reverseCharge] =>
[parent] =>
[exempt] =>
[isDefault] =>
[excludeFromTaxReports] =>
[available] =>
[export] =>
[taxAccount] => RecordRef Object
(
[internalId] => 375
[externalId] =>
[type] =>
[name] => Sales Taxes Payable
)
[county] =>
[city] =>
[state] =>
[zip] =>
[nexusCountry] =>
[internalId] => 955
[externalId] =>
[nullFieldList] =>
)
どうもありがとうございました。
よろしくお願いします