Is it possible to create a cashBook from API?

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

Is it possible to create a cashBook from API?

Postby Bjarne Thomsen » Wed Jun 15, 2011 9:47 am

I create a handle to a cashBook and import data into, I get the handle this way:

CashBookHandle book = economic.cashBook_FindByName("Acubiz");

If there are not any cashBook with the provided name (here named "Acubiz") I would like to create it. The following code checks if the cashBook exists - and I could of course instruct the user to create it - but if it was posibile to create it from the API - I would prefer this. It seems like it is possible to rename a cashBook but I can not find a way to create it.

So does anyone know if this i possible?

if (book == null) {
System.out.println("Book does not exists and I will now like to create it");
//book = economic.cashBook_SetName(cashBookHandle, "Acubiz");
}
-
Bjarne Thomsen
 
Posts: 3
Joined: Wed Jun 15, 2011 9:38 am

Re: Is it possible to create a cashBook from API?

Postby Christian Estrup » Wed Jun 15, 2011 12:21 pm

Hi Bjarne,

Creating cash books is unfortunately not possible at this time.

Anyone else who could use this functionality?


Best regards,
Christian Estrup
Chief Architect

Image
Online accounting
User avatar
Christian Estrup
 
Posts: 245
Joined: Tue Jun 09, 2009 6:37 pm

Re: Is it possible to create a cashBook from API?

Postby emanuelgreisen » Sun Jan 08, 2012 3:26 am

Yes please. I would like to register a DebtorPayment from the API, and then Book the CashBook in which I created the DebtorPayment.

If I understand correctly this is not possible today - because I cannot create a CashBook via the API. But maybe there is another way around it (which does not require someone to log in and create cash books manually).
-
emanuelgreisen
 
Posts: 2
Joined: Sun Jan 08, 2012 3:21 am

Re: Is it possible to create a cashBook from API?

Postby Christian Estrup » Sun Jan 08, 2012 3:07 pm

Hi,

Depending on how your integration works and is set up by end-users, you could have a setting to specify which cash book customer payments should be registered in. Many users would have a bespoke one for this already anyway.


Best regards,
Christian Estrup
Chief Architect

Image
Online accounting
User avatar
Christian Estrup
 
Posts: 245
Joined: Tue Jun 09, 2009 6:37 pm

Re: Is it possible to create a cashBook from API?

Postby emanuelgreisen » Sun Jan 08, 2012 9:52 pm

Hi Christian,

Will the CashBook not disappear after it has been booked? If not, then it should not be a problem to have a bespoke cash book which is used by our system over and over again.

The only - more theoretical question - is then if there is a lock on the cash book such that two simultaneous payments will not work on the same cashbook and thus book it twice (one time with two payments, and once with zero payments).
-
emanuelgreisen
 
Posts: 2
Joined: Sun Jan 08, 2012 3:21 am


Return to JAVA



cron