Forum

Error on submit imp...
 
Notifications
Retirer tout

Error on submit imputation form

22 Posts
2 Utilisateurs
0 Reactions
8,826 Vu
(@babynus)
Posts: 14952
Membre Admin
 
CRON abnormally stopped

is not really an error. Don't care about it.

You Apache log is the access log, not the error log.

You should not change the code as you did. Check unit for work in global parameters.


 
Posté : 17 Août AM 11:088
(@abarbier35)
Posts: 31
Active Member
Début du sujet
 

Hi,

All my apache error are empty.

My unit of work is 7 hours by day.

And I try to find where is my problem, and I modify the code in a development environement.

Thinks,


 
Posté : 17 Août AM 11:088
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Could you please try and reproduce the issue on Demo ( https://demo.projeqtor.org) ?
Do you reproduce on demo or not ?


 
Posté : 17 Août AM 11:088
(@abarbier35)
Posts: 31
Active Member
Début du sujet
 

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 ? 

 


 
Posté : 17 Août PM 12:088
(@babynus)
Posts: 14952
Membre Admin
 

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.


 
Posté : 18 Août PM 17:088
(@abarbier35)
Posts: 31
Active Member
Début du sujet
 

Hi,
When this issus will be available ?
Thanks,


 
Posté : 18 Août PM 17:088
(@babynus)
Posts: 14952
Membre Admin
 

When we have time


 
Posté : 18 Août PM 18:088
Page 2 / 2
Share:
Retour en haut