Page 1 of 1

Cash Book Receipt - Debtor Transaction Relationship

PostPosted: Wed Dec 06, 2017 7:22 pm
by nsbandara
Hi,

I'm working on a plugin for cash book receipts for Jiwa 7.0.175 and need to access selected debtor/creditor transaction of the cashbook transaction line to find source transaction date to display FX rate on that date. Can you please explain how to access the selected debtor transaction or creditor transaction related to a particular cash book transaction line?
Code: Select all
    private void CashBookTransactions_Added(JiwaFinancials.Jiwa.JiwaCashBook.CashBookTransaction item)
    {
        if(item.TransactionType == JiwaFinancials.Jiwa.JiwaCashBook.CashBookTransactionCollection.TransactionTypes.Debtor)
        {
            //get debtor transaction linked to CashBookTransaction here
        }
    }
   


Capture.JPG
cash book receipt entry


Thanks.

Re: Cash Book Receipt - Debtor Transaction Relationship  Topic is solved

PostPosted: Fri Dec 08, 2017 9:56 am
by Mike.Sheen
Hi nsbandara,

The Cashbook has two collection of transactions accessible by the properties DebtorTransactions and CreditorTransactions.

The CashBookTransaction has a property, Allocations - which is a collection of allocation records - the allocation has a property, DebtorCreditorTransactionKey - which is the index key into the DebtorTransactions or CreditorTransactions - depending on the type of the transaction.