Page 1 of 1

Cashbook Debtor/Creditor in code?

PostPosted: Wed Jun 10, 2015 4:59 pm
by neil.interactit
Hi,

Simple question (I hope) ... I can't find the Cashbook transaction (line item) Debtor/Creditor field ...

In a cashBook.JournalSet.SaveStart proc I am looking in journalSet.Lines, unsuccessfully.

Can you point in the right direction?

Cheers,
Neil.

Re: Cashbook Debtor/Creditor in code?  Topic is solved

PostPosted: Wed Jun 10, 2015 6:01 pm
by Scott.Pearce
The Debtor/Creditor field is at cashBook.CashBookTransactions(recID).DebtorCreditorAccountID. It may be blank for any given line. For other lines it will be a CreditorID. For others it will be a DebtorID. The cashBook.CashBookTransactions(recID).TransactionType property indicates what sort of id you will find (debtor/creditor/blank - blank meaning gl account transaction, look in cashBook.CashBookTransactions(recID).OffsetLedgerID).

Re: Cashbook Debtor/Creditor in code?

PostPosted: Thu Jun 11, 2015 5:57 pm
by neil.interactit
All good, many thanks Scott.