如何从 QBXML 中的 InvoiceQuery 获取 InvoiceLine

How to get InvoiceLine from InvoiceQuery in QBXML

当我使用 QBXML 向 Quickbooks 添加发票时,我使用 <InvoiceLineAdd> 添加发票行。我在执行 InvoiceQuery 时如何获取发票的发票行?

IncludeLineItems 标签就是您要查找的内容。例如:

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <InvoiceQueryRq>

      <RefNumber>ABC123</RefNumber>

      <IncludeLineItems>true</IncludeLineItems>
      <IncludeLinkedTxns>true</IncludeLinkedTxns>
    
    </InvoiceQueryRq>
  </QBXMLMsgsRq>
</QBXML>