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

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

Error on submit imputation form

More
17 Aoû 2021 10:31 - 17 Aoû 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 Aoû 2021 10:54 by abarbier35.

Please Connexion or Create an account to join the conversation.

More
18 Aoû 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 Connexion or Create an account to join the conversation.

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

Please Connexion or Create an account to join the conversation.

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

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.037 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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