Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Using template repo...
 
Notifications
Clear all

Using template reports plugin and local currency of projects

2 Posts
2 Users
0 Reactions
755 Views
(@jramosmathsinhealth-com)
Posts: 4
Active Member
Topic starter
 
[#9715]

Hello thanks for the great software.

I'm using the 12.0.0 version and the reports template plugin. I'm generating a report which include amounts and the plugin fails. please the logs below:
2025-01-27 10:21:59.334 ** ERROR ** [V12.0.0] [1] on file '/var/www/projeqtor/public/tool/html.php' at line (2522)
2025-01-27 10:21:59.335 ** ERROR ** [V12.0.0] [1] cause = Too few arguments to function htmlDisplayLocalCurrency(), 1 passed in /var/www/projeqtor/public/model/persistence/SqlElement.php on line 9259 and at least 3 expected
2025-01-27 10:21:59.335 ** ERROR ** [V12.0.0] [1]    => #0 /var/www/projeqtor/public/model/persistence/SqlElement.php (9259) -> htmlDisplayLocalCurrency()
2025-01-27 10:21:59.335 ** ERROR ** [V12.0.0] [1]    => #1 /var/www/projeqtor/public/plugin/templateReport/templateReportExecute.php (102) -> toArrayFields()
2025-01-27 10:21:59.335 ** ERROR ** [V12.0.0] [1]    => #2 /var/www/projeqtor/public/report/object/Bill.php (3) -> include()
2025-01-27 10:21:59.335 ** ERROR ** [V12.0.0] [1]    => #3 /var/www/projeqtor/public/view/print.php (304) -> include()

The problem is at the line 9259 of the SqlElement.php file when calling the functionhtmlDisplayLocalCurrency($value)
It has only one argument when the function is defined at the html.php line 2522 as follows:function htmlDisplayLocalCurrency($idProject,$val,$valLocal,$noDecimal=false)
Hope this information is enough to help with the issue. Thanks a lot in advance!

 


 
Posted : 27 Jan 2025 15H08
Maxca
(@maxime)
Posts: 274
Active Member Admin
 

Hello,
Indeed it's a bug, ticket #9544.
Thanck you and have a nice day,

Maxca


 
Posted : 31 Jan 2025 10H28
Share:

Scroll to Top