QBXML上LineItemAdd的Desc字段是否有任何字符限制



我收到此InvoiceAddRq 的一般查找错误

0x80040400: QuickBooks found an error when parsing the provided XML text stream.

xml中唯一不同寻常的部分似乎是LineItem描述(包含/&字符):

<InvoiceLineAdd>
        <ItemRef>
            <FullName>Other</FullName>
        </ItemRef>
        <Desc>Memorial Installation/Layout Inspection fee for John & Jane Doe by Acme Monuments</Desc>
        <Quantity>1</Quantity>
        <Amount>300.00</Amount>
        <SalesTaxCodeRef>
            <FullName>NON</FullName>
        </SalesTaxCodeRef>
    </InvoiceLineAdd>

"Intuit软件开发工具包的屏幕参考"说,DescSTRTYPE的,最多可以是4000个字符的

我似乎不知道是什么引发了这个错误?我所有的其他发票似乎都在找。

新尝试:@William Lorfing建议进行编码,所以我在Desc输入上使用了PHP htmlentities(),它发送了以下内容:

 <Desc>Memorial Installation/Layout Inspection fee for John &amp; Jane Smith by Acme Monuments</Desc>

是否也需要一种不同的PHP编码来实现正斜杠?

确保您正在使用编码。有关详细信息,请参阅Consolibyte网站-http://wiki.consolibyte.com/wiki/doku.php/quickbooks_qbxml_questions

最新更新