RelatedTransactionID from a posted transaction

Discussions related to custom development with Select.
Post Reply
kwesterlage
Posts: 73
Joined: Thu May 21, 2015 2:28 pm

RelatedTransactionID from a posted transaction

Post by kwesterlage »

Is there a way to access the field stored in the database as pt.Transaction.RelatedTransactionID from the API?
sindrapal
Posts: 42
Joined: Tue Oct 14, 2008 9:21 am

Re: RelatedTransactionID from a posted transaction

Post by sindrapal »

It is not directly available via the API. Can you please tell me what your use case is?
kwesterlage
Posts: 73
Joined: Thu May 21, 2015 2:28 pm

Re: RelatedTransactionID from a posted transaction

Post by kwesterlage »

We are trying to track the disbursement of order-related transactions in the revenue ledger, but we would like to keep the relation to the original order transaction (if possible).
sindrapal
Posts: 42
Joined: Tue Oct 14, 2008 9:21 am

Re: RelatedTransactionID from a posted transaction

Post by sindrapal »

Please correct me if I am wrong. It looks like you have a posted disbursement (Ledger transfer(-) transaction) in an order related ledger whose corresponding ledger transfer (+) is in a revenue ledger.

If you have a reference to the full transaction instance for one side, it will give you the reference to the other side. For example, lets say that you have a reference to the Ledger transfer (-) transaction, you can get a reference to the Ledger Transfer (+) using the TransferIn property and vice-versa.

ILedgerTransferOutTransaction transferOut = (ILedgerTransferOutTransaction) GetTransaction(transactionInfo);
ILedgerTransferInTransaction transferrin = transferOut.TransferIn;
kwesterlage
Posts: 73
Joined: Thu May 21, 2015 2:28 pm

Re: RelatedTransactionID from a posted transaction

Post by kwesterlage »

That worked, thanks
Post Reply