Cash Book Receipt - Debtor Transaction Relationship  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Cash Book Receipt - Debtor Transaction Relationship

Postby nsbandara » Wed Dec 06, 2017 7:22 pm

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.
User avatar
nsbandara
Occasional Contributor
Occasional Contributor
 
Posts: 43
Joined: Tue Jul 16, 2013 5:02 pm
Location: Sri Lanka
Topics Solved: 11

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

Postby Mike.Sheen » Fri Dec 08, 2017 9:56 am

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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 23 guests