RelatedTransactionID from a posted transaction
-
- Posts: 73
- Joined: Thu May 21, 2015 2:28 pm
RelatedTransactionID from a posted transaction
Is there a way to access the field stored in the database as pt.Transaction.RelatedTransactionID from the API?
Re: RelatedTransactionID from a posted transaction
It is not directly available via the API. Can you please tell me what your use case is?
-
- Posts: 73
- Joined: Thu May 21, 2015 2:28 pm
Re: RelatedTransactionID from a posted transaction
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).
Re: RelatedTransactionID from a posted transaction
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;
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;
-
- Posts: 73
- Joined: Thu May 21, 2015 2:28 pm
Re: RelatedTransactionID from a posted transaction
That worked, thanks