我正在尝试将以下 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>