Author Topic: RecievePaymentAdd - "This feature is not enabled or not available in this versi"  (Read 3410 times)

StuDougnym

  • Member
  • *
  • Posts: 3
Hi All,

I'm new with FMBooks, but old hand at FM.  Currently using hosted FMS11 on XP client FMA 11 connecting with QB Enterprise 12 using FM Books plugin. 

I have been able to establish contact and create invoices and customers from FM to QB.  I am stuck at trying to receive payments for a customer though.  In this example case, I am trying to create a payment independent of an invoice.  Could someone have a look at the XML and give me a hint at what I am missing?  I believe I have been following the OCR correctly, but could use a second pair of eyes.  When I execute the xml, I receive the error staus:
CODE: 3250
SEVERITY: Error
MESSAGE: This feature is not enabled or not available in this version of QuickBooks.

Thanks!
 
Code: [Select]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?qbxml version="11.0" ?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <ReceivePaymentAddRq>
      <ReceivePaymentAdd>
        <CustomerRef>
          <ListID>80002662-1340124196</ListID>
        </CustomerRef>
        <TotalAmount>200.00</TotalAmount>
        <ExchangeRate>1</ExchangeRate>
        <Memo>For Testing</Memo>
        <DepositToAccountRef>
          <FullName>Undeposited Funds</FullName>
        </DepositToAccountRef>
        <IsAutoApply>1</IsAutoApply>
      </ReceivePaymentAdd>
    </ReceivePaymentAddRq>
  </QBXMLMsgsRq>
</QBXML>

Geoffrey Gerhard

  • Guru
  • Member
  • ****
  • Posts: 468
This...

<IsAutoApply>1</IsAutoApply>

...should be this...

<IsAutoApply>true</IsAutoApply>

HTH!

Geoffrey Gerhard
Creative Solutions Incorporated
14000 Creekside Drive
Matthews, NC  28105
704) 814-6852

StuDougnym

  • Member
  • *
  • Posts: 3
Thanks for the suggestion Geoff,

Two things:
I used the calc

PCQB_RqAddFieldWithValue( "IsAutoApply" ; true )

Which produced the 1 in the xml.  When I change it to

PCQB_RqAddFieldWithValue( "IsAutoApply" ; "true" )

I get the xml you suggest, but same error and behavior. 

I also tried the xml below to receive a payment directly to an open invoice, but had the same error message.

Code: [Select]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?qbxml version="11.0" ?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <ReceivePaymentAddRq>
      <ReceivePaymentAdd>
        <CustomerRef>
          <ListID>80002662-1340124196</ListID>
        </CustomerRef>
        <TotalAmount>200.00</TotalAmount>
        <ExchangeRate>1</ExchangeRate>
        <Memo>For Test SO</Memo>
        <DepositToAccountRef>
          <FullName>Undeposited Funds</FullName>
        </DepositToAccountRef>
        <AppliedToTxnAdd>
          <TxnID>11F515-1340137348</TxnID>
          <PaymentAmount>200.00</PaymentAmount>
        </AppliedToTxnAdd>
      </ReceivePaymentAdd>
    </ReceivePaymentAddRq>
  </QBXMLMsgsRq>
</QBXML>

What am I missing here?


StuDougnym

  • Member
  • *
  • Posts: 3
After consulting the SDK Manual
https://member.developer.intuit.com/qbSDK-current/doc/PDF/QBSDK_ProGuide.pdf

It seems that I was confusing the DepositToAccountRef with the ARAccountRef.  The xml below successfully produced a credit (unapplied payment) for the specified customer.

Code: [Select]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?qbxml version="11.0" ?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <ReceivePaymentAddRq>
      <ReceivePaymentAdd>
        <CustomerRef>
          <ListID>80002662-1340124196</ListID>
        </CustomerRef>
        <ARAccountRef>
          <FullName>Accounts Receivable</FullName>
        </ARAccountRef>
        <TotalAmount>200.00</TotalAmount>
        <IsAutoApply>false</IsAutoApply>
      </ReceivePaymentAdd>
    </ReceivePaymentAddRq>
  </QBXMLMsgsRq>
</QBXML>