Optimize CashBookEntry?

Forum for .NET developers using the E-conomic API.
Exchange your ideas, tip and tricks using the API.
Best Practices

Optimize CashBookEntry?

Postby thomas fra focus it » Tue Oct 04, 2011 10:46 am

How can I avoid making a request for each property I set on a ICashBookEntry?

ICashBookEntry cashBookEntry = session.CashBookEntry.CreateFinanceVoucher(cashBook, account, contraAccount);
cashBookEntry.Amount = amount;
cashBookEntry.Currency = currency
cashBookEntry.AmountDefaultCurrency = amountDefault;
cashBookEntry.Date = date;
cashBookEntry.Text = text;
cashBookEntry.VoucherNumber = number;

Code above generates 7 requests.
I just got an Excessive API usage warning for making more than 100.000 requests in one day.
-
thomas fra focus it
 
Posts: 12
Joined: Tue Sep 21, 2010 2:24 pm

Re: Optimize CashBookEntry?

Postby thomas fra focus it » Thu Oct 06, 2011 3:05 pm

I got the answer from this topic: net-f6/icashbookentry-vouchernumber-t1996.html
-
thomas fra focus it
 
Posts: 12
Joined: Tue Sep 21, 2010 2:24 pm


Return to .NET



cron