Time calculation using AppGini 22.14

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
Moh Youba
Veteran Member
Posts: 228
Joined: 2017-03-12 09:31

Time calculation using AppGini 22.14

Post by Moh Youba » 2022-11-11 10:04

Hello
How are you doing here, I hope you all doing well.
Please I need help for date and time calculation.
I want to get total time worked and fees

*WORKING HOUR*
- start_datetime
- end_datetime
- total_worked_time
- amount
- total_to_pay

any help please

Thank you

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1638
Joined: 2018-04-01 10:12

Re: Time calculation using AppGini 22.14

Post by pbottcher » 2022-11-12 17:31

Hi,

maybe you can post what you tried to do so far and what is not working. Then we can try to help you.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

Moh Youba
Veteran Member
Posts: 228
Joined: 2017-03-12 09:31

Re: Time calculation using AppGini 22.14

Post by Moh Youba » 2022-11-13 12:30

Hello
Thank you sir for your comment. My English is not very good to really explain. I found an easy non expert way to do what I want. See image.
Sans titre 5.jpg
Sans titre 5.jpg (38.66 KiB) Viewed 1012 times
heure_t
SELECT `pointage_profs`.`heure_d`-`pointage_profs`.`heure_a` FROM `pointage_profs`
WHERE `pointage_profs`.`idpp`='%ID%'

net_payer
SELECT `pointage_profs`.`montant`*`pointage_profs`.`heure_t` FROM `pointage_profs`
WHERE `pointage_profs`.`idpp`='%ID%'
Thank you

Post Reply