title: Problem passing Deposit from PHP application to Quickbooks Desktop via Consolibyte Quickbooks PHP DevKit
body: <p>I'm in the process of implementing Keith Palmer's QuickBooks PHP DevKit
  (<a href="https://github.com/consolibyte/quickbooks-php/" rel="nofollow noreferrer">https://github.com/consolibyte/quickbooks-php/</a>) so that my PHP application can pass data to Quickbooks Desktop via Quickbooks Web Connector. I've worked through several hiccups due to changes in PHP and Quickbooks, and now the example web connector app does work and successfully passes customers to Quickbooks.</p>
  <p>My actual goal is to simulate transactionally through PHP what is accomplished in Quickbooks by the relatively simple process of:<br>
  Banking--&gt;Use Register, (Select Account), and entering either a Payment or a Deposit amount, an Account, a Memo, and Clicking Record.</p>
  <p>I thought that this (at least the deposit portion) would be accomplished via DepositAddRq by using the QUICKBOOKS_ADD_DEPOSIT method in the PHP DevKit. Now that I'm rewriting things to use this method, I'm receiving the following error:</p>
  <p>3180:
  There was an error when saving a Deposit line..
  QuickBooks error message: The given record number is not in the Payments to Deposit list.</p>
  <p>The SOAP server is generating the following XML:</p>
  <pre><code>        &lt;?qbxml version=&quot;2.0&quot;?&gt;
          &lt;QBXML&gt;
              &lt;QBXMLMsgsRq onError=&quot;stopOnError&quot;&gt;
                  &lt;DepositAddRq requestID=&quot;19&quot;&gt;
                      &lt;DepositAdd&gt;
                          &lt;DepositToAccountRef&gt;
                              &lt;FullName&gt;test account&lt;/FullName&gt;
                          &lt;/DepositToAccountRef&gt;
                          &lt;Memo&gt;Memo&lt;/Memo&gt;
                          &lt;DepositLineAdd&gt;
                              &lt;PaymentTxnID&gt;3D95-1071497093&lt;/PaymentTxnID&gt;
                          &lt;/DepositLineAdd&gt;
                      &lt;/DepositAdd&gt;
                  &lt;/DepositAddRq&gt;
              &lt;/QBXMLMsgsRq&gt;
          &lt;/QBXML&gt;
  </code></pre>
  <p>And I'm receiving this XML response from Quickbooks:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; ?&gt;
  &lt;QBXML&gt;
  &lt;QBXMLMsgsRs&gt;
  &lt;DepositAddRs requestID=&quot;19&quot; statusCode=&quot;3180&quot; statusSeverity=&quot;Error&quot; statusMessage=&quot;There was an error when saving a Deposit line..  QuickBooks error message: The given record number is not in the Payments to Deposit list.&quot; /&gt;
  &lt;/QBXMLMsgsRs&gt;
  &lt;/QBXML&gt;
  </code></pre>
  <p>I receive the same error when passing the QuickBooks SDK 15 sample XML code for DepositAddRq:</p>
  <pre><code>&lt;QBXMLMsgsRq onError=&quot;stopOnError&quot;&gt;
  &lt;DepositAddRq requestID=&quot;0&quot;&gt;
  &lt;DepositAdd&gt;
  &lt;DepositToAccountRef&gt;
  &lt;FullName&gt;Checking&lt;/FullName&gt;
  &lt;/DepositToAccountRef&gt;
  &lt;DepositLineAdd&gt;
  &lt;PaymentTxnID&gt;3D95-1071497099&lt;/PaymentTxnID&gt;
  &lt;/DepositLineAdd&gt;
  &lt;/DepositAdd&gt;
  &lt;/DepositAddRq&gt;
  &lt;/QBXMLMsgsRq&gt;
  &lt;/QBXML&gt;
  </code></pre>
  <p>Should I be using a completely different method to record the Deposits and Payments from an account, are there additional steps required, or am I going about this completely wrong?</p>
  <p>Thanks in advance!</p>