Orderlines -> recording sales on different accounts

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

Orderlines -> recording sales on different accounts

Postby kwi » Thu Oct 20, 2011 7:47 am

Hi

We have setup different accounts that we would like to use to record income for sales of different types of products. For example we have these accounts setup in E-conomic:
1170 Heaters
1180 Gaz pumps
1190 Vacuum cleaners

When we sell these products we create a customer orders with the different orderlines. No problem here, but there doesn't appear to be a way of telling E-conomic that the sales for the different orderlines should get recorded to specific accounts. When the customer recieves his order we use the API to convert the order to an invoice using these API calls:

Order_UpgradeToInvoice
Order_RegisterAsSent
CurrentInvoice_Book

When we do this we can see changes in the chart of accounts, but not on the accounts that we would like. Can you tell me what I am missing?

When we do a create a creditor invoice with CashBookEntry_CreateCreditorInvoice we can very easily specify a contra account, and we would like to do something similar when we convert a customer order to an invoice. So to clarify: We are looking for a way to record sales from individual orderlines to accounts (in the carts of accounts) that we specify.
-
kwi
 
Posts: 12
Joined: Sun May 08, 2011 11:52 pm

Re: Orderlines -> recording sales on different accounts

Postby Christian Estrup » Thu Oct 20, 2011 1:13 pm

Hi,

You cannot specify the revenue account on a per-line basis.

Instead, revenue accounts are specified on product groups.

So, based on a given order line, the revenue account will be the line's product's group's account.

http://www.e-conomic.com/apidocs/Documentation/T_Economic_Api_IProductGroup_Members.html.


Best regards,
Christian Estrup
Chief Architect

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

Re: Orderlines -> recording sales on different accounts

Postby kwi » Thu Nov 03, 2011 2:12 pm

Ok, thanks!
-
kwi
 
Posts: 12
Joined: Sun May 08, 2011 11:52 pm


Return to PHP



cron