Author Topic: Deleting existing QB Invoice  (Read 1566 times)

spastaman

  • Member
  • *
  • Posts: 8
Deleting existing QB Invoice
« on: December 16, 2011, 02:06:32 PM »
I would like to be able to DELETE an Existing Quickbooks Invoice, so I can re-push it (modified). I am trying to use PCQB_ReqAddNew: TxnDel. I looked it up in OSR, it only wants 2 inputs: TxnDelType, and TxnID.

I have both those (I thought)...
TxnDelType = "tdtInvoice" (taken from OSR options)
TxnID = valid field data w/QB Txn # recorded from previous successful push event.

But maybe my Script steps are incorrect (using incorrect syntax), as I see no examples of this process, but in nutshell it is below - apologies for typos here - I am typing from scratch, not cut/paste, and don;t have script in front of me (it's on pc, i'm on mac):

CloseSession
ReqAddNew ( TxnDel ; "" )
ReqAddNewFieldwithValue (TxnDelType ; "tdtInvoice" )
ReqAddNewFieldwithValue (TxnID ; _qb_id_txn )
Req...BeginSession
Req..Execute  <----- here's where ERROR <> 0, instead PCQB_GetStatus =  ' "-1000...Error at TxnDelTypemReason: 'tdtInvoice' violates enumeration constraint of 'ARRefundCreditCard BillPaymentCheck BillPaymentCreditCard.....

...at very bottom of error code..."The element 'txnDelType' with value 'tdtInvoice' failed to parse"

Any help greatly appreciated!!

Geoffrey Gerhard

  • Guru
  • Member
  • ****
  • Posts: 470
Re: Deleting existing QB Invoice
« Reply #1 on: December 16, 2011, 04:14:20 PM »
This line...

ReqAddNewFieldwithValue (TxnDelType ; "tdtInvoice" )

...should read:

ReqAddNewFieldwithValue (TxnDelType ; "Invoice" )


You may find that the "XMLOps" tab on the OSR page is the best reference. Don't know why all the Enumeration Type values are wrong on the Request tab version.

HTH!

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