View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Error on submit imputation form - Page 4 - ProjeQtOr
 
 

Error on submit imputation form

More
17 Aug 2021 10:31 - 17 Aug 2021 10:54 #19 by abarbier35
I don't reproduce it. It's not the same unit work on your demo environement.

I have localised my problem. On you code, when I do this request :
insert into work ( inputUser , inputDateTime , manual , idResource , idProject , refType , refId , idAssignment , work , workDate , day , week , month , year , dailyCost ) values ('7', '2021-08-17 10:22:32', '0', '7', '419', 'Activity', '876', '5188', '0,14286', '2021-08-16', '20210816', '202133', '202108', '2021', '0.00');
=> I can show that the value of work is 0,14286 but my query has a warning when I execute it. If I replace the value of work by 0.14286 I doesn't have the problem.
(I do the request on my mysql server directly)

For information, the update query is : update work set inputDateTime='2021-08-17 10:39:39' , work='0.14286' , cost='0' where id=78554
=> Value of work is good. I don't know why

Do you know where I can search it ? Is it my mysql server ? My version of MYSQL is : 5.7.21



In more, in the method updateSqlElement, I have this code to convert data ',' => '.' with decimal value. 

        if ($dataType == 'decimal') {
          $col_new_value = str_replace ( ',', '.', $col_new_value );
        }

But, I don't have the same code in insertSqlElement. Why it's not the same ? 



 
Last edit: 17 Aug 2021 10:54 by abarbier35.

Please Log in or Create an account to join the conversation.

More
18 Aug 2021 15:47 #20 by babynus
Hi,

Will add a fix to add the convertion in insertSqlElement.
It is strange you retrieve decimal with comma, but we already faced this issue (and so added the fix in updateSqlElement) and will extend the fix to insert.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
18 Aug 2021 15:58 #21 by abarbier35
Hi,
When this issus will be available ?
Thanks,

Please Log in or Create an account to join the conversation.

More
18 Aug 2021 16:07 #22 by babynus
When we have time

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.036 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.