I'm trying to add a cashbook entry using the code below and get the following error
ICashBook cashbook = _sessionCashBookFindByNumber(1);
IAccount account = _sessionAccountFindByNumber(1302);
IAccount contraAcc = _sessionAccountFindByNumber(4200);
ICashBookEntryData data = _sessionCashBookEntryDataCreate(CashBookEntryTypeDebtorPayment, cashbook,
null, null, account, contraAcc);
ICashBookEntry entry = _sessionCashBookEntryCreateFromData(data);
entryAmount = 2400M;
entryAmountDefaultCurrency = 2400M;
entryDate = new DateTime(2011,06,15);
IDepartment dept = _sessionDepartmentFindByNumber(300);
entryDepartment = dept;
entryText = 110111;
I've tried various date formats and also tried adding entry.duedate but it's made no difference.
In addition to this query, is this the recommended way to add a cashbook entry as there ain't many examples kickin about and I'm not all that hot on accountancy
Are the creditor and/or debtor compulsory...you'll notice i'm passing nulls for these types in the code above.