【问题标题】:quickbooks api to add a payment against an invoice with RubyRails app使用 RubyRails 应用程序根据发票添加付款的 quickbooks api
【发布时间】:2020-10-15 11:54:08
【问题描述】:

我正在尝试将发票标记标记为已付款,据我了解,我必须根据发票添加付款。我正在使用 qbwc gem,它正在使用 qbxml v.13。 我在https://community-intuit.force.com/developer/s/article/QBO-REST-Apply-payments-to-invoice 找到了几个创建支付对象的示例,但是用于创建支付的 qbxml 标记对我来说不是很清楚。

这是我在 OSR ReceivePaymentAddRq、ItemPaymentAddRq 等中找到的几个 xml 标签

但我仍然不确定如何创建支付对象以及应该使用哪些 xml 标签,感谢您的帮助,在此先感谢。

【问题讨论】:

    标签: ruby-on-rails ruby quickbooks qbxml


    【解决方案1】:

    一个最小的 qbXML 示例如下所示:

    <?xml version="1.0" encoding="utf-8"?>
    <?qbxml version="10.0"?>
    <QBXML>
        <QBXMLMsgsRq onError="stopOnError">
            <ReceivePaymentAddRq>
                <ReceivePaymentAdd>
                    <CustomerRef>
                        <ListID>F230000-1196864585</ListID>
                        <!--<FullName>Keith Palmer</FullName>--> <!-- You can specify either ListID or FullName -->
                    </CustomerRef>
    
                    <TxnDate>2007-12-14</TxnDate>
                    <RefNumber>00612361</RefNumber>
                    <TotalAmount>195.00</TotalAmount>
    
                    <!-- Specify the Invoice TxnID here, or see below for auto-apply... -->
                    <AppliedToTxnAdd>
                        <TxnID>12006-1196864828</TxnID>
                        <PaymentAmount>195.00</PaymentAmount>
                    </AppliedToTxnAdd>
        
                    <!-- If you don't want to apply payments manually to a particular transaction, use <IsAutoApply>true</IsAutoApply> -->
                    <!--   instead of the <AppliedToTxn> node. QuickBooks will make it's best guess how to apply the payment. -->
                </ReceivePaymentAdd>
            </ReceivePaymentAddRq>
        </QBXMLMsgsRq>
    </QBXML>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多