QBXML接收应用于多个发票的付款

时间:2018-12-14 04:50:29

标签: qbxml

我正在尝试使用QBXML将1付款应用于多张发票,并且出现以下错误

QuickBooks found an error when parsing the provided XML text stream

我的XML:

<?xml version="1.0" encoding="utf-8"?><?qbxml version="13.0"?>
<QBXML>
<QBXMLMsgsRq onError="continueOnError">
<ReceivePaymentAddRq>
<ReceivePaymentAdd>
    <CustomerRef>
        <ListID>8000254C-1444676392</ListID>
    </CustomerRef>
    <TxnDate>2018-12-13</TxnDate>
    <RefNumber>457</RefNumber>
    <TotalAmount>863.10</TotalAmount>
    <Memo></Memo>
    <PaymentMethodRef><FullName/></PaymentMethodRef>
    <AppliedToTxnAdd>
       <TxnID>11B0C6-1544760951</TxnID>
       <PaymentAmount>179.00</PaymentAmount>
    </AppliedToTxnAdd>
    <AppliedToTxnAdd>
       <TxnID>11B0CA-1544761043</TxnID>
       <PaymentAmount>684.10</PaymentAmount>
    </AppliedToTxnAdd>
</ReceivePaymentAdd><IncludeRetElement>TxnID</IncludeRetElement><IncludeRetElement>RefNumber</IncludeRetElement></ReceivePaymentAddRq></QBXMLMsgsRq></QBXML>

注意,我有2个AppliedToTxnAdd元素。

但是,如果我仅应用1个AppliedToTxnAdd,它会起作用!

1 个答案:

答案 0 :(得分:0)

问题在于xml元素的顺序。 QB对此很在意。