View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Why does WorkElement save work for session user ? - Page 2 - 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)

 

 

 
 

Why does WorkElement save work for session user ?

More
02 Mai 2021 18:09 #7 by Baryhobal
Ok, so, what I want to do is when I press the stop work button from my bot, it saves the worktime to the user who pressed the button and not the bot user. This means I can't just use the stop method from WorkElement.
I copied what Projeqtor does when you save imputations from the dispatch menu in hope it would work for me. Unfortunately, there is some strange behaviour.
Indeed, when stopping after some time, the amount displayed in the real work box is correct. However, if I open the dispatch menu, I can see a line for the user but with the wrong amount of work. I supsect the time is not converted properly and that time in work days is added to time in hours.
Perhaps it's because of WorkElement::updateAssignment. Does it need time in work days or in hours ?

I hope this explains a bit more my problem.

Please Connexion or Create an account to join the conversation.

More
03 Mai 2021 12:52 #8 by babynus

This means I can't just use the stop method from WorkElement.

Exact !
 

I supsect the time is not converted properly and that time in work days is added to time in hours.
Perhaps it's because of WorkElement::updateAssignment. Does it need time in work days or in hours ?

Values stored in the DB must always be stored in days.
So possibly you need to add conversion. See Work::convertImputation()

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.034 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.