QBXML SalesOrder添加问题
QBXML SalesOrderAdd issue
我正在尝试通过 QBWebConnector 创建 SalesOrder(后端 - Rails + qbwc), following Onscreen Reference for Intuit Software Development Kits,它说 SalesOrderAdd
只需要 CustomerRef
属性,但是 QBXML 验证器说:
Line: 10
LinePos: 9
Src Text: </SalesOrderAdd>
Reason: Element content is incomplete according to the DTD/Schema.
Expecting: ClassRef, TemplateRef, TxnDate, RefNumber, BillAddress, ShipAddress, PONumber, TermsRef, DueDate, SalesRepRef, FOB, ShipDate.
QBXML 请求是:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?qbxml version="7.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<SalesOrderAddRq>
<SalesOrderAdd>
<CustomerRef>
<FullName>Test customer</FullName>
</CustomerRef>
</SalesOrderAdd>
</SalesOrderAddRq>
</QBXMLMsgsRq>
</QBXML>
这是为什么?我能否以某种方式更改此行为(省略屏幕参考中要求的所有标记除外)?
OSR ……不够完美。但它确实表明还有其他必填字段。
您需要添加至少一个订单项或组行。
我正在尝试通过 QBWebConnector 创建 SalesOrder(后端 - Rails + qbwc), following Onscreen Reference for Intuit Software Development Kits,它说 SalesOrderAdd
只需要 CustomerRef
属性,但是 QBXML 验证器说:
Line: 10
LinePos: 9
Src Text: </SalesOrderAdd>
Reason: Element content is incomplete according to the DTD/Schema.
Expecting: ClassRef, TemplateRef, TxnDate, RefNumber, BillAddress, ShipAddress, PONumber, TermsRef, DueDate, SalesRepRef, FOB, ShipDate.
QBXML 请求是:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?qbxml version="7.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<SalesOrderAddRq>
<SalesOrderAdd>
<CustomerRef>
<FullName>Test customer</FullName>
</CustomerRef>
</SalesOrderAdd>
</SalesOrderAddRq>
</QBXMLMsgsRq>
</QBXML>
这是为什么?我能否以某种方式更改此行为(省略屏幕参考中要求的所有标记除外)?
OSR ……不够完美。但它确实表明还有其他必填字段。
您需要添加至少一个订单项或组行。