Jump to content

Modifying Transactions


fmgenius
 Share

This topic is 1627 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 1627 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.