【发布时间】:2013-07-12 18:48:17
【问题描述】:
我正在尝试将以下 XML 发布到 QB 桌面 SDK。当我不包含 QuantityOnHand 或 PurchaseCost 节点时,调用成功,但当包含这些节点中的一个或两个时,调用失败。这是我正在生成的 XML:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="12.0"?>
<QBXML>
<QBXMLMsgsRq onError="continueOnError">
<ItemInventoryAddRq>
<ItemInventoryAdd>
<Name>11200</Name>
<IsActive>1</IsActive>
<SalesDesc>R/C Glider.</SalesDesc>
<SalesPrice>149.99000</SalesPrice>
<PurchaseCost>124.99000</PurchaseCost>
<QuantityOnHand>35</QuantityOnHand>
<IncomeAccountRef>
<FullName>Construction Income:Materials Income</FullName>
</IncomeAccountRef>
<COGSAccountRef>
<FullName>Cost of Goods Sold</FullName>
</COGSAccountRef>
<AssetAccountRef>
<FullName>Inventory Asset</FullName>
</AssetAccountRef>
</ItemInventoryAdd>
</ItemInventoryAddRq>
</QBXMLMsgsRq>
</QBXML>
【问题讨论】:
-
我得到的错误是:HRESULT 异常:0x80040400
-
详细登录后,日志文件显示什么?
标签: xml quickbooks qbxml