Skip to Content
0
Former Member
Feb 17, 2013 at 01:16 PM

How to get by key a journal voucher?

132 Views

Hi,

The JournalVouchers object in the di doesn't have the GetByKey method.

Furthermore, the following code generates an error:

JournalVouchers diJoV = company.GetBusinessObject(di.BoObjectTypes.oJournalVouchers) as JournalVouchers;diJoV.JournalEntries.GetByKey(someNumber);

No matter which number you use, the code fails.

Any idea how to solve this issue?