Incorrect HT/TTC recalculation when editing proposal lines (Dolibarr 22.0.3)

Hello,

I am experiencing an issue in Dolibarr 22.0.3 when editing lines in a commercial proposal.

Whenever I edit a line (Quantity), the initial HT price replace The initial TTC price, and Dolibarr recalculates a new HT value based on that incorrect number. This results in wrong totals.

Example

  • Original: 20,000.00 TTC → 16,666.67 HT

  • After editing the line quantity or discount:
    → 16,666.67 becomes TTC
    → HT recalculated to 13,888.89 (incorrect)

How can i Fix this please ?

Thanks

please look if the same bug has already been reported here GitHub · Where software is built

if it has not been reported, then please file a bug report.

Please include part of the logfile from your webserver when doing this change

enable debug logging and include part of dolibarr.log found in the documents/ folder.

Hi @jonbendtsen,

Thank you for your guidance. I have now submitted the bug report on GitHub and included all the environment details (Dolibarr version, PHP version, MariaDB version, and reproduction steps).

The PHP error logging on my hosting was disabled, so no webserver logs were generated earlier. I have now enabled PHP error logging and Dolibarr debug mode. I will reproduce the issue again and upload both the webserver error log and the dolibarr.log file as soon as they are generated.

Thanks again for your help.

1 Like

The problem has now been identified and fixed. Here is the Pull Request containing the correction:

:link: https://github.com/Dolibarr/dolibarr/pull/36525

1 Like