首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SuiteTalk -发行创建ItemReceipt

SuiteTalk -发行创建ItemReceipt
EN

Stack Overflow用户
提问于 2020-01-31 08:40:53
回答 1查看 149关注 0票数 1

我一直致力于一种与NetSuite的“集成”。我们使用Suitetalk/来提取和推送一些数据,只是因为我不是netsuite专家。

它一直在很好地从Netsuite中提取数据,并且只推送(添加) vendorBill。在这一点上一切都很好。

但是,我被要求添加(创建)采购订单和itemReceipts。

我已经成功地创建了采购订单,但我正在努力创建itemReceipt。当我将它发送到Netsuite时,我会得到一个错误:“不允许向子列表开销添加新行”。

遵循下面的请求和响应xml。

有人能帮我找出我做错了什么吗?少了什么?

非常感谢。干杯。

请求

代码语言:javascript
复制
<?xml version="1.0"?>

-<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">


-<soap:Header>


-<preferences xmlns="urn:messages_2019_1.platform.webservices.netsuite.com">

<warningAsError>false</warningAsError>

<ignoreReadOnlyFields>true</ignoreReadOnlyFields>

</preferences>


-<tokenPassport xmlns="urn:messages_2019_1.platform.webservices.netsuite.com">

<account xmlns="urn:core_2019_1.platform.webservices.netsuite.com">1111111_SB1</account>

<consumerKey xmlns="urn:core_2019_1.platform.webservices.netsuite.com">****************************************************************</consumerKey>

<token xmlns="urn:core_2019_1.platform.webservices.netsuite.com">****************************************************************</token>

<nonce xmlns="urn:core_2019_1.platform.webservices.netsuite.com">1111100</nonce>

<timestamp xmlns="urn:core_2019_1.platform.webservices.netsuite.com">11111899</timestamp>

<signature xmlns="urn:core_2019_1.platform.webservices.netsuite.com" algorithm="HMAC-SHA1">****************************</signature>

</tokenPassport>

</soap:Header>


-<soap:Body>


-<add xmlns="urn:messages_2019_1.platform.webservices.netsuite.com">


-<record xmlns:q1="urn:purchases_2019_1.transactions.webservices.netsuite.com" xsi:type="q1:ItemReceipt">

<q1:entity type="vendor" internalId="19918834"/>

<q1:subsidiary internalId="15"/>

<q1:createdFrom type="purchaseOrder" internalId="28854986"/>

<q1:tranDate>2020-01-31T08:21:38.7482415Z</q1:tranDate>

<q1:memo>test memo</q1:memo>

<q1:currency type="currency" internalId="1"/>


-<q1:itemList>


-<q1:item>

<q1:itemReceive>true</q1:itemReceive>

<q1:item type="inventoryItem" internalId="1238"/>

<q1:location type="location" internalId="26"/>

<q1:quantity>1</q1:quantity>

<q1:rate>200</q1:rate>

</q1:item>

</q1:itemList>


-<q1:expenseList>


-<q1:expense>

<q1:markReceived>true</q1:markReceived>

<q1:account>117</q1:account>

<q1:amount>0</q1:amount>

</q1:expense>

</q1:expenseList>

</record>

</add>

</soap:Body>

</soap:Envelope>

响应

代码语言:javascript
复制
<?xml version="1.0"?>

-<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">


-<soapenv:Header>


-<platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2019_1.platform.webservices.netsuite.com">

<platformMsgs:nsId>WEBSERVICES_1111111_SB1_013120208906514922222545436_466a0e814</platformMsgs:nsId>

</platformMsgs:documentInfo>

</soapenv:Header>


-<soapenv:Body>


-<addResponse xmlns="urn:messages_2019_1.platform.webservices.netsuite.com">


-<writeResponse>


-<platformCore:status xmlns:platformCore="urn:core_2019_1.platform.webservices.netsuite.com" isSuccess="false">


-<platformCore:statusDetail type="ERROR">

<platformCore:code>USER_ERROR</platformCore:code>

<platformCore:message>Adding new line to sublist expense is not allowed.</platformCore:message>

</platformCore:statusDetail>

</platformCore:status>

</writeResponse>

</addResponse>

</soapenv:Body>

</soapenv:Envelope>
EN

回答 1

Stack Overflow用户

发布于 2022-09-18 09:32:20

有点晚了,但其他人都发现自己在这里。这是因为没有提供订单行。如果你不提供它,NS认为你正在创造一个新的线,你不是所有的都要做。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60000454

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档