Hy,
I've downloaded the new release API and I've tried to set an employee reference for a new cashBookEntry.
CurrencyHandle currency = session.currency_FindByCode("RON");
AccountHandle account = session.account_FindByNumber(11111);
EmployeeHandle employeeHandle = session.employee_FindByNumber(1);
CashBookHandle cashBookHandle = session.cashBook_FindByNumber(5);
CashBookEntryData data = new CashBookEntryData();
data.setAmount(new BigDecimal(1000));
data.setCashBookHandle(cashBookHandle);
data.setType(CashBookEntryType.FinanceVoucher);
Calendar cal = Calendar.getInstance();
data.setDate(cal);
data.setVoucherNumber(59);
data.setText("test from API");
data.setCurrencyHandle(currency);
data.setAccountHandle(account);
data.setEmployeeHandle(employeeHandle);
session.cashBookEntry_CreateFromData(data);
But in my e-conomic web account, the field for the employee reference isn't set (all other fields are completed like I specified in my code). Please advice me what's wrong with my code.
Best regards,
Dorin


