fmgenius Posted March 1, 2018 Posted March 1, 2018 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?
Geoffrey Gerhard Posted March 1, 2018 Posted March 1, 2018 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
fmgenius Posted March 1, 2018 Author Posted March 1, 2018 Fantastic! Thank you, Geoffrey. I understand about the VOID but my client is--unconventional.
Recommended Posts
This topic is 2450 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now