March 1, 20187 yr In order to modify a transaction, you have to provide the transaction ids and edit sequence. If my modification has more expense lines than the original, the documentation says that I just have to pass "-1" as the transaction line to add a new line. What if the QB version of the transaction originally had more expense lines than your modification. Is it possible (and how to) to delete the extra expense lines in a mod request?
March 1, 20187 yr Modification will drop all Lines that are not identified by their TxnLineID value. If your ModRq contains only Lines where the TxnLineID values are -1, all the original lines are dropped and the Modified Txn will have only the new Lines. In my experience, it's easier to omit any reference to the original Txn's Lines TxnLineID values and simply pass all the Lines you want to appear on the Modified Txn with a TxnLineID value of -1. That means you don't need to explicitly store the TxnLineID values from AddRs/ModRs if you have no other reasons for doing so. I usually discourage Modifying a transaction in favor of Voiding the original and creating a new Transaction. The Void is really easy to code, and you'd use the AddRq process you've already created to push the corrected Txn. HTH! Geoffrey Gerhard Creative Solutions Incorporated 14000 Creekside Drive Matthews, NC 28105 704) 814-6852
March 1, 20187 yr Author Fantastic! Thank you, Geoffrey. I understand about the VOID but my client is--unconventional.
Create an account or sign in to comment