Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.31k stars 2.75k forks source link

No way to link salaries to accounting #23201

Open Natureshadow opened 1 year ago

Natureshadow commented 1 year ago

Bug

I have created salaries and salary payments under the HR tab for users, but can see no way to link the salaries to the accounting journals.

Salaries are expenses, so in double accounting they are booked as follows (in German accounting model SKR 03):

Liability account: 1740 (Liabilites from salaries) Expesne account: 4100 (Expenses for salaries) Bank account: 1200

  1. Salary is booked as expense on 4100 against 1740
  2. Payment is booked on 1200 against 1740

Dolibarr only records the second transaction.

The same seems to go for taxes and social insurance. They would also somehow need to be recorded as expenses.

Environment Version

16.0.1

Environment OS

Debian 11

Environment Web server

nginx

Environment PHP

7.4.28

Environment Database

PostgreSQL 13

Environment URL(s)

No response

Expected and actual behavior

The salaries themselves need to be linked to accounting. I doo see the salary payments created as accounting entries, but not the salaries themselves. They need to be booked of course to settle the salary liabilities account.

I see now journal, no link function, and nothing even remotely related to salaries in the accounting module.

Steps to reproduce the behavior

  1. Enable advanced accounting.
  2. Enable salaries
  3. Create a salary for a user
  4. Go to accounting and try to find a way to link the salary to a journal
AurelienBISOTTI commented 1 year ago

Salary should be in the BK (bank) journal

image

If not, reopen the issue Screenshot is from v18

AurelienBISOTTI commented 1 year ago

You may change account number from this menu image

Natureshadow commented 1 year ago

What you see in the journal is only the payment of the salary, not the salary itself.

AurelienBISOTTI commented 1 year ago

Got it My customers create a global 6411000000 writing (should be 4100 for you) manually every month

This is probably because the salary payment is not equal to the actual cost. You have to add taxes whether on employee or employer side.

Dolibarr is not able to calculate those, because it depends on the country and many other factors.

Therefore, I'd say it is not a bug. Are you OK with this ?

Natureshadow commented 3 months ago

Still relevant.

eldy commented 2 months ago

@aspangaro It seems we have to transfer the salary and salary payment like we do for invoice and invoice payment:

Do you agree with this ?