Comment 16 for bug 388145

Revision history for this message
Husen Daudi (husendaudi) wrote :

Hello,
I have checked this operations with new blank db.

Product purchase = 10 EUR, Tax = 19% =1,19 EUR
Product sale = 30 EUR, tax = 19% = 3,57 EUR
Stock location configured with account 3000

Purchase a product
In the general ledger nothing is booked, there is packing line generated in Stock management to receive the goods

This part is working perfect.....
Receive the products
account 3000 = D 10 ← Type balance – Stock account, defined in location
account 2800 = C 10 ← Type balance – Interim account, Goods received, awaiting invoice

Receive the purchase invoice
account 2800 = D 10 ----Here it takes indirect expense account instead of interim account. I have defined 2800 in expense account of product and now this part is working too.
account 1612 = D 1,19 ← Type balance – Vat account to receive
account 1500 = C 11,19 ← Type balance – Creditor account

Sell product
In the general ledger nothing is booked, there is packing line generated in Stock management to send the goods

This part is working perfect.....
Deliver product
account 3000 = C 10 Stock account
account 2801 = D 10 Type balance – Interim account, Goods send, to invoice

Invoice customer
These 2 entries are not encoded.
account 2801 = C 10
account 7000 = D 10 Type P/L – Cost of sales

account 8000 = C 30,00 Type P/L Sales account--this entry takes 2801 because I have defined 2801 in incom account of product.

These 2 entries are encoded right.
account 1602 = C 3,57 Type balance – Vat account to pay
account 1300 = D 33,57 Type balance Debtor account

I have started developing module for this.
I have a doubt for selecting accounts while encoding entries.
from where I should take intrim accounts? I am planning to add 2 property fields on product and category for "incoming intrim account" and "outgoing intrim account". Is this a correct solution?

For this part of entries.
Invoice customer
These 2 entries are not encoded.
account 2801 = C 10
account 7000 = D 10 Type P/L – Cost of sales

To encode this entries we will take 2801 from intrim account of product or category.
from where I should select 7000?

Thanks for help.