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.29k stars 2.74k forks source link

Bug: Fatal error: Uncaught Error: Function name must be a string #29740

Closed fpav closed 3 months ago

fpav commented 4 months ago

Instructions

This is a template to help you report good issues. You may use Github Markdown syntax to format your issue report. Please:

Bug

When opening the report section for Turnover invoiced by customer in accounting menu, I have the following message :

Fatal error: Uncaught Error: Function name must be a string in /home/clients/75b383e1e32cfcb0a1b615c70a4bac17/erp/compta/stats/casoc.php:638 Stack trace: #0 {main} thrown in /home/clients/75b383e1e32cfcb0a1b615c70a4bac17/erp/compta/stats/casoc.php on line 638

or

If I asked for turnover invoiced : the April month is providing me an error

Warning: Division by zero in /home/clients/75b383e1e32cfcb0a1b615c70a4bac17/erp/compta/stats/index.php on line 465 +INF%

Environment

Expected and actual behavior

Should get the customer turnover breakdown but I don't have any report.

Steps to reproduce the behavior

When opening the report section for Turnover by customer in accounting menu, choose turnover by customer

Attached files (Screenshots, screencasts, dolibarr.log, debugging informations…)

[Files] 2024-05-22_18-28-11

2024-05-22_18-27-19

Report

pierrehenrymuller commented 3 months ago

I have this bug too and I confirm that the patch is working.

Hystepik commented 3 months ago

It seems to be fixed so I close the issue. Feel free to reopen if not.

fpav commented 3 months ago

Not fully fixed the following error is still remaining :

If I asked for turnover invoiced : the April month is providing me an error

Warning: Division by zero in /home/clients/75b383e1e32cfcb0a1b615c70a4bac17/erp/compta/stats/index.php on line 465 +INF%

fpav commented 3 months ago

Sorry but it still alive for one of them, one is solved but the other is not, I don’t know how to reopen so I made another comment on the same one.

Thanks for your help,

https://mysig.io/gA0rg8qb
Franck PAVAN General Manager EUROCOM ☎️ : +33 661 573 000 <tel:+33 661 573 000> 🌐 : www.red-limo.com https://www.red-limo.com/ ✉️ : @. @.> 📬 : 6 Chemin des Garennes 31260 Touille - France https://www.linkedin.com/in/franck-pavan-b6493013/ https://mysignature.io/editor/?utm_source=expiredpixel @.***/> Please consider the environment before printing this email IMPORTANT: The contents of this email and any attachments are confidential. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.

Le 29 mai 2024 à 10:31, Lucas Marcouiller @.***> a écrit :

It seems to be fixed so I close the issue. Feel free to reopen if not.

— Reply to this email directly, view it on GitHub https://github.com/Dolibarr/dolibarr/issues/29740#issuecomment-2136845267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOB5324ZEOLPQSR3YZLDYHLZEWG7JAVCNFSM6AAAAABID75BJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZWHA2DKMRWG4. You are receiving this because you authored the thread.