Company: Link Technologies
Case No: L13204. Project: 16.00: LinkSOFT Version 16.00
Logged By: Vineet (Link Business Solutions) on behalf of Sanjay (Link Technologies) on 17 Sep 2025 04:39PM
Priority: Low
Product: Payroll & HR
Group: Support
Time Taken: 40.00 (Weight: 9.00)
Assigned To: Sanjay (Link Technologies)
Circulation: Sanjay, Sitla, Vineet
Resolve By: Thursday, 25 September 2025 04:31 PM [29 days since logged date]
Status: Closed
Subject: Incorrect hours taken calculated on Leave Application Form when Employee has an Overlapping Shift Assigned
Summary:    
Section A. Describe what the issue is about. Include Error Message (and screenshots (600px x 800px 100kb max size)

Incorrect Hours Taken is calculated on the Leave Application form if an employee is assigned an overlapping shift.

Section B. Relevant History Information: Any information relevant to this issue.

This has been reproduced on version 15.90 on the Demo URL: https://linktechnologies.com.au/DEMO-LinkSOFT-LBS

Section C. The issue can be reproduced by performing the following steps: 

  1. For Employee A001, assigned shift NS. Start time for Shift NS is 11:00 pm, and End time is 8:00 am with one break from 3:00 AM to 4:00 AM
  2.  Now, apply leave for this employee for one day.
  3. Expected hours is 8. Time calculated by the system is 0.98

Figure 1.1 Review hours taken on the below snap
*** Removed due to image size

    Audit Notes:Edited by sanjay on 24/09/25 17:17. Edited by sanjay on 18/09/25 16:51. Edited by sanjay on 17/09/25 16:39. Edited by sanjay on 17/09/25 13:48. Edited by vineet on 17/09/25 11:37. Edited by vineet on 17/09/25 11:20. 
    17 Sep 202511:20AM Comment 1 by Vineet (Link Business Solutions) ETC was changed from 17/09/2025 to 18/09/2025
    17 Sep 202501:47PM Comment 2 by Sanjay (Link Technologies) Assigned To: Vineet (Link Business Solutions) Followup Date: 17-09-2025 06:36 PM Time Taken: 3.00 Notes: Edited by sanjay on 17/09/25 13:53. 

    Hi Vineet, the reason you are getting this value is that your Shift settings doesn't look right.

    For example, the Leave date is 17th September 2025, which is a Wednesday. Your Shift "NS" on a Wednesday starts at 11PM, with an END time of 8AM on Monday. This means your shift ends before it starts.

    Which client is using this Shift setup? . Are you saying this was working differently in a previous version?  If so, can you set this up and show me?

    Will change the Group and Priority until we can identify if this is a defect.

    See documentation at this link.


    17 Sep 202504:38PM Comment 3 by Sanjay (Link Technologies) Assigned To: Sanjay (Link Technologies) Followup Date: 25-09-2025 03:16 PM Time Taken: 3.00

    Hi Vineet, reassigning the case to myself as I may have found a case in V12 that allows us to set the Shift End Date after theShift Start Date.

    Further investigation required.


    17 Sep 202505:17PM Comment 4 by Sanjay (Link Technologies) Assigned To: Sanjay (Link Technologies) Followup Date: 25-09-2025 05:14 PM Time Taken: 3.00

    *** Teams discussion, Sanjay and Vineet ***

    We think PAFCO and GFI use overlapping shift, where the Shift END DATE is moved to the "NEXT DAY" if the "Shift End Date" is BEFOR the "Shift Start Date"

    Next Steps:

    1. Vineet has provided databases for PAFCO and GFI
    2. Sanjay to setup GFI on LinkQA5 and Vineet will setup PAFCO on QA8
    3. Setup PAFCO and GFI databases to see how this worked
    4. If we cannot find a client using this, we will do a design and implement this change in 15.90 as a patch

    18 Sep 202512:01PM Comment 5 by Sanjay (Link Technologies) Case L13204 added to project 16.00
    18 Sep 202504:44PM Comment 6 by Sanjay (Link Technologies) Assigned To: Sanjay (Link Technologies) Followup Date: 25-09-2025 04:31 PM Time Taken: 24.00 Notes: ETC extended from: 18/09/2025 to 25/09/2025
    PART A - Development work for this case has been completed.

    1. The change will be available in version: 15.90.250918

    2. The following changes were made (Include Database object names, Program classes, and any other relevant information):

    1. You can create Night Shift by entering Shift Start and End dates as shown in Figure 1 below.
    2. Leave hours calculation will work as follows:
      1. Leave Application: Start: 11PM Monday to 8AM Tuesday = 8 hours. This is made up of 9 hours between 11PM Monday to 8AM Tuesday Subtract 1 hour Break time
      2. Leave Application: Start: 10PM Monday to 8AM Tuesday = 8 hours. This is made up of 9 hours between 11PM Monday to 8AM Tuesday Subtract 1 hour Break time. Start time adjusted to 11PM Monday as Shift starts at 11PM Monday.
      3. Leave Application: Start: 11PM Monday to 9AM Tuesday = 9 hours. This is made up of 10 hours between 11PM Monday to 9AM Tuesday Subtract 1 hour Break time. Note, Shift Stops at 8AM Tuesday, however, Shift Hours on Monday (S1) allows 8 hours, so 1 hour is taken from Monday. S1 for Tuesday allows 8 hours, so we allow full 8 hours on Turesday, giving 9 hours in total.
      4. Leave Application: Start: 11PM Monday to 8AM Sunday = 45 hours. This is made up of 9 hours - 1 hour break from Monday to Friday, and 5 hours on Saturday.

    3. Affected Areas:

    1. Leave Application

    4. The issue was caused by:

    1. Functionality added in 2012 but not documented.

    5. Other Relevant Notes
    6. Next Step
    (Review and System Test (Developer) -> UAT (Quality) -> Documentation): UAT required on Rostering and Holiday calculations.


    Figure 1 - Night Shift overlaping weekdays


    19 Sep 202502:51PM Comment 7 by Sitla (Edge Business Solutions) Assigned To: Sanjay (Link Technologies) Followup Date: 25-09-2025 01:24 PM Time Taken: 1.00

    Hi Sanjay,

    I have done the testing in the Edge Demo

    Environment Details

    1. URL:https://linktechnologies.com.au/DEMO-LinkSOFT-EDGE
    2. Employee ID - NSLP001
    3. Company ID 1001
    4. Roster ID RSCH00022 & RSCH00024
    5. Shift ID- NS
    Leave Application 
    1. Scenario 1 - Passed
    2. Scenario 2 - Passed
    3. Scenario 3 - Passed
    4. Scenario 4 - Failed. Hours come to 38 only.



    24 Sep 202511:14AM Comment 8 by Sanjay (Link Technologies) Assigned To: Sanjay (Link Technologies) Followup Date: 02-10-2025 11:10 AM Time Taken: 4.00 Notes: Edited by sanjay on 24/09/25 11:18. 

    Hi Sitla, the issue is the test case is incorrect. The current test case doesn't consider the full 7 days, i.e. Monday was missing in the old Test case. It should be:

    1. Leave Application: Start: 11PM Monday to 8AM Monday = 45 hours. This is made up of 9 hours - 1 hour break from Monday to Friday, and 5 hours on Saturday.

    Can you review and confirm?


    24 Sep 202503:13PM Comment 9 by Sitla (Edge Business Solutions) Assigned To: Sanjay (Link Technologies) Followup Date: 02-10-2025 03:04 PM

    Hi Sanjay,

    The corrected test case has passed.
    Sitla


    24 Sep 202504:43PM Comment 10 by Sanjay (Link Technologies) Assigned To: Sanjay (Link Technologies) Followup Date: 02-10-2025 04:42 PM Time Taken: 2.00
    Thanks. Patch released.

    If you have any queries regarding this support incident, please email Support@LinkTechnologies.com.au and include the Case No: L13204 in the subject line of all emails regarding this issue.

    Document size: 167.7 KB
    For call complaints, please contact the Managing Director of the company using this form