Dolibarr: Turnover invoiced Error Multi-company

Created on 11 Dec 2019  路  3Comments  路  Source: Dolibarr/dolibarr

Bug

When editing the Revenue billed if you use the MultiCompagny module and you have more than one company the accumulation is multiplied by the number of companies

Environment

  • Version: 10.0.1
  • OS: UBUNTU 16.04
  • Web server: Apache
  • PHP: 7.0.33
  • Database: MySQL or MariaDB 5.7.26
  • URL(s): compta/stats/index.php?leftmenu=accountancy_report&modecompta=BOOKKEEPING
    /compta/resultat/index.php?mainmenu=accountancy&leftmenu=accountancy_report

Reason of the issue

Code references are based on the branch 10.0.

In the file /compta/stats/index.php L.197
$sql.= " AND b.code_journal = aj.code AND aj.nature = 2 AND aj.entity=".$conf->entity ;

In the file /compta/resultat/index.php L.819
$sql.= " WHERE b.numero_compte = aa.account_number AND b.entity = ".$conf->entity." AND aa.entity = ".$conf->entity;

Bug

Most helpful comment

@Nicolas90000
i send a PR to fix this https://github.com/Dolibarr/dolibarr/pull/12695

All 3 comments

Hi,

MultiCompagny is an external module, not supported here.
You need to contact the developer.

Hi

Yes, but the accounting code should take into account the entities

Nicolas

@Nicolas90000
i send a PR to fix this https://github.com/Dolibarr/dolibarr/pull/12695

Was this page helpful?
0 / 5 - 0 ratings

Related issues

truefriend-cz picture truefriend-cz  路  5Comments

defrance picture defrance  路  3Comments

OrenSavichWS picture OrenSavichWS  路  3Comments

esprit-libre picture esprit-libre  路  3Comments

gnovaro picture gnovaro  路  5Comments