I am adding a new line using this code from the above plugin
- Code: Select all
CashBookForm.CashBook.AddNewTransaction(JiwaFinancials.Jiwa.JiwaCashBook.CashBookTransactionCollection.TransactionTypes.Other, "", ref newTransactionKey);
but really, I want it to be a debtor transaction.
The only value I am supplied with is a debtor accountno. Aside from the value, a reference/InvRemitNo and date. But key to my question is the debtor accountno.
Just not sure of the correct syntax if I use
- Code: Select all
CashBookForm.CashBook.AddNewTransaction(JiwaFinancials.Jiwa.JiwaCashBook.CashBookTransactionCollection.TransactionTypes.Debtor, "", ref newTransactionKey);
(Note the difference is the transaction type).
Maybe I need to use
- Code: Select all
cashBook.ReadDebtor(param, param, param and so on)
but all I can give ReadDebtor is the accountno. I know the last parameter is a bool UseDebtorAccountNoAsSeed which would be true.
I've fiddled about with a few various syntaxes but I'm stabbing in the dark and not getting anywhere.
When I go
- Code: Select all
cashBook.ReadDebtor("1001", true)
I get a compile error No overload method for ReadDebtor takes 2 arguments.