Working Time Calendar function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1524

    #1

    Working Time Calendar function

    Hi,
    is there a function out-of-box for calculate :

    hours of avability of user (per week)
    day of avability of user (per week)

    I have try to search on Github but not find.

    As is date dependant, i have a problem for create custom function

    Thanks
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
  • victor
    Active Community Member
    • Aug 2022
    • 919

    #2
    It's not entirely clear what you mean by "availability of user" over a certain period of time. Please describe in more detail.

    Comment

    • item
      Active Community Member
      • Mar 2017
      • 1524

      #3
      Hi Victor,
      look print-screen..
      This is the workingTimeCalendar...
      So maybe exist function who can calculate :

      3 day
      x Hours (so not calculate maybe here 19h)

      So in User Entity in this sample :
      workDay = 3
      workTotalHour = 19

      So i will create a new Entity... for workload of User
      And each week.. new record.. for past week and for next week... it's my gifts for User

      Attached Files
      Last edited by item; 06-02-2025, 07:56 PM.
      If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

      Comment

      • rabii
        Active Community Member
        • Jun 2016
        • 1301

        #4
        I guess you can go that by the existing functions



        PHP Code:
        ext\workingTime\getSummedWorkingHours(FROMTO)

        and 

        ext\workingTime\getWorkingDays(FROMTO

        You can achieve this by using the two functions i guess.
        Rabii
        Here to help :)

        Comment


        • item
          item commented
          Editing a comment
          Haa thanks Rabii,

          my mistake is searching on github Formula Page and i don't know exist special page for WorkingTimeCalendar.

          Thanks
      Working...