API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Bookkeeping - required fields

0
Hi.

We're creating CashBookEntries with the following code:

        CashBookEntryData cashBookEntryData = new CashBookEntryData();
        cashBookEntryDatasetType(CashBookEntryTypeDebtorPayment);
        cashBookEntryDatasetCashBookHandle(cashBookHandle);
        cashBookEntryDatasetVoucherNumber(invoiceNumber);
        cashBookEntryDatasetDebtorHandle(debtorHandle);
        cashBookEntryDatasetAmount(amount);
        cashBookEntryDatasetCurrencyHandle(currencyHandle);
        cashBookEntryDatasetDate(invoiceDate);
        cashBookEntryDatasetText(text);
        sessioncashBookEntry_CreateFromData(cashBookEntryData);


The above code will create an entry in the cashbook with the correct amount.
However, when we look at the cashreport in the web ui, the amount is zero.

What are we missing?
created Mar 30, 2011 by ecshh
0% Accept Rate
Q 1 A 0 C 0

1 Answer

0
Hi,

You must set AmountDefaultCurrency as well.

If the currency of the entry is the default currency of the company (which is the default for new entries), Amount and AmountDefaultCurrency must be equal for the entry to be bookable subsequently anyway.


Best regards,
answered Mar 31, 2011 by Christian Estrup
Visma e-conomic A/S
...