将qbxml文件导入Quickbook-桌面

时间:2019-08-08 10:03:27

标签: python quickbooks qbxml

我正在研究Django / Python项目,其中包括Quick Book Payment的集成,我正在使用mysql数据库存储记录, 现在,通过我的代码,我可以成功创建完整的qbxml文件以进行销售。 我想在quickbook-desktop中导入该文件/数据以生成销售收据。 我只需要一个人来指导我如何将qbxml的数据导入quickbook-desktop pro

这是生成的qbxml文件

<?xml version="1.0" ?>
<?qbxml version="4.0"?>
<QBXML>
 <QBXMLMsgsRq onError="continueOnError">

  <SalesReceiptAddRq requestID="100004">
   <SalesReceiptAdd>
    <CustomerRef>
     <FullName>(Web)</FullName>
    </CustomerRef>
    <TemplateRef>
     <FullName>Web Sales Receipt</FullName>
    </TemplateRef>
    <TxnDate>Aug. 6, 2019</TxnDate>
    <RefNumber>I-100004</RefNumber>



        <SalesReceiptLineAdd>
         <ItemRef>
          <FullName>Palm Tree</FullName>
         </ItemRef>
         <Desc>Moon Necklace</Desc>
         <Quantity>3</Quantity>
         <Rate>1.00</Rate>
         <Amount>3.00</Amount>
         <SalesTaxCodeRef>
          <FullName>Tax</FullName>
         </SalesTaxCodeRef>
        </SalesReceiptLineAdd>

        <SalesReceiptLineAdd>
         <ItemRef>
          <FullName>Sun Face</FullName>
         </ItemRef>
         <Desc>Moon Necklace</Desc>
         <Quantity>4</Quantity>
         <Rate>1.00</Rate>
         <Amount>3.00</Amount>
         <SalesTaxCodeRef>
          <FullName>Tax</FullName>
         </SalesTaxCodeRef>
        </SalesReceiptLineAdd>


    <SalesReceiptLineAdd>
     <!-- blank line -->
    </SalesReceiptLineAdd>

    <SalesReceiptLineAdd>
      <ItemRef>
       <FullName>Shipping</FullName>
      </ItemRef>
      <Desc>Shipping and handling</Desc>
      <Amount>4.5 </Amount>
      <SalesTaxCodeRef>
       <FullName>Non</FullName>
      </SalesTaxCodeRef>
    </SalesReceiptLineAdd>

    <SalesReceiptLineAdd>
     <!-- blank line -->
    </SalesReceiptLineAdd>

    <SalesReceiptLineAdd>
     <Desc>11.5 was charged to a credit card</Desc>
    </SalesReceiptLineAdd>

   </SalesReceiptAdd>
  </SalesReceiptAddRq>

我想将生成的qbxml文件导入quickbook-desktop进行销售

1 个答案:

答案 0 :(得分:0)

这比应该的要复杂。您需要使用Quickbooks Web连接器。这需要安装一个在您和桌面Quickbook之间的Soap服务器。您需要与thisthis类似的东西。