kwhsiung / mm-punch

0 stars 2 forks source link

An accurate working hours and working days #10

Open baron-chiu opened 4 years ago

baron-chiu commented 4 years ago

Is your proposal related to a problem?

Current mm-punch checks holiday instead of working hour. It might miss the additional working hours, the additional holidays, and personal leaves.

Describe the solution you'd like

  1. At 9 AM each day, mm-punch checks the working hours for each members. Imgur
  2. mm-punch determines the punching time of each members.
  3. Schedules the punching time. Note that it might be 8 hours or 4 hours.
  4. Executes the scheduled function at the determined time.

Describe alternatives you've considered

Check /SCSWeb/HRM/AttEmpWorkInfoQuery.aspx with only one member's credential to determine the working day, but I don't think the complexity it creates is worthy.

Additional context

It has the following benefit:

  1. Decouple the dependence on National holiday and the work calendar of Directorate-General of Personnel Administration.
  2. Members who has requested a leave of a day would not initiate a punch job.

Though it won't pass the Turing Test, it could be more personal-tailored instead of a routine punch.

baron-chiu commented 4 years ago

The personal shift can be obtained at /SCSWeb/HRM/AttEmpWorkInfoQuery.aspx. Maybe we should use it to determine the punching time also?

Since it's scheduled yearly, we don't need to look for the shift regulary.