title: Operation not supported: Expense with BillableStatus should have CustomerRef for AccountBasedExpenseLineDetail Line in Purchase
body: <p>I have attempted to submit a Purchase as Check to QBD using PHP SDK with the below XML request content:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ns0:Purchase xmlns:ns0="http://schema.intuit.com/finance/v3" domain="QB"&gt;
    &lt;ns0:TxnDate&gt;2014-02-21&lt;/ns0:TxnDate&gt;
    &lt;ns0:PrivateNote&gt;Test for QBD Purchase Check&lt;/ns0:PrivateNote&gt;
    &lt;ns0:Line&gt;
      &lt;ns0:Description&gt;E1&lt;/ns0:Description&gt;
      &lt;ns0:Amount&gt;10.00&lt;/ns0:Amount&gt;
      &lt;ns0:DetailType&gt;AccountBasedExpenseLineDetail&lt;/ns0:DetailType&gt;
      &lt;ns0:AccountBasedExpenseLineDetail&gt;
        &lt;ns0:ClassRef name="Coffee and tea"&gt;QB:8&lt;/ns0:ClassRef&gt;
        &lt;ns0:AccountRef name="Computer and Internet Expenses"&gt;QB:10&lt;/ns0:AccountRef&gt;
        &lt;ns0:BillableStatus&gt;NotBillable&lt;/ns0:BillableStatus&gt;
        &lt;ns0:TaxCodeRef&gt;NON&lt;/ns0:TaxCodeRef&gt;
      &lt;/ns0:AccountBasedExpenseLineDetail&gt;
    &lt;/ns0:Line&gt;
    &lt;ns0:Line&gt;
      &lt;ns0:Description&gt;E2&lt;/ns0:Description&gt;
      &lt;ns0:Amount&gt;15.00&lt;/ns0:Amount&gt;
      &lt;ns0:DetailType&gt;AccountBasedExpenseLineDetail&lt;/ns0:DetailType&gt;
      &lt;ns0:AccountBasedExpenseLineDetail&gt;
        &lt;ns0:CustomerRef name="Arnold Schwarzenegger"&gt;QB:3&lt;/ns0:CustomerRef&gt;
        &lt;ns0:ClassRef name="Alcoholic beverages"&gt;QB:2&lt;/ns0:ClassRef&gt;
        &lt;ns0:AccountRef name="Computer and Internet Expenses"&gt;QB:10&lt;/ns0:AccountRef&gt;
        &lt;ns0:BillableStatus&gt;NotBillable&lt;/ns0:BillableStatus&gt;
        &lt;ns0:TaxCodeRef&gt;NON&lt;/ns0:TaxCodeRef&gt;
      &lt;/ns0:AccountBasedExpenseLineDetail&gt;
    &lt;/ns0:Line&gt;
    &lt;ns0:AccountRef name="My Bank Account"&gt;QB:30&lt;/ns0:AccountRef&gt;
    &lt;ns0:PaymentType&gt;Check&lt;/ns0:PaymentType&gt;
    &lt;ns0:EntityRef name="Herry Pilor"&gt;QB:9&lt;/ns0:EntityRef&gt;
    &lt;ns0:TotalAmt&gt;25.00&lt;/ns0:TotalAmt&gt;
  &lt;/ns0:Purchase&gt;
  </code></pre>
  
  <p>Since both lines have been marked BillableStatus=NotBillable, however, the first line comes without CustomerRef.</p>
  
  <p>Submit that content should get this response message:</p>
  
  <pre><code>http://schema.intuit.com/finance/v3" time="2014-02-21T09:04:42.972Z"&gt;Operation failed with errors:
  Operation not supported: Expense with BillableStatus should have CustomerRef for AccountBasedExpenseLineDetail Line in Purchase &lt;/Message&gt;&lt;/Error&gt;&lt;/Fault&gt;&lt;/IntuitResponse&gt;
  </code></pre>
  
  <p>So the question is that why it requires Customer when BillableStatus=NotBillable?</p>
  
  <p>But in the previous Java API version, there was no Customer expected when NotBillable</p>
  
  <p>Please advice.
  Thanks</p>