Cost of sales vs Inventory journal entry in Accounting

Dear Dolibarr users,

Problem:
A sale does only generate one single journal entry
Sales vs Account Receivable
in the accounting.

The journal entry
inventory vs cost of sales
is not done automatically in accounting.

In the product set-up I can only assign one account to the product.

If there is no existing solution to the problem, I am looking for advise to create one. For that I would need to know which php files must be edited or alternatively what sql statements are necessary to create the missing entry in the ledger.

I use Dolibarr 21.01.

Hi @hiplus
Accounting is still under development if you think you can help take a look here