Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to calculate annual leave - please advise

How to calculate annual leave - please advise

Scheduled Pinned Locked Moved Database
tutorialcomannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    Hi, I need your advise please.. here is the detail::: The employee contract can be definite (with expiry date) or indefinite (open without expiry date). The employee contract will always have date of join if the contract is definite then employee will have 30 days every year where the year is the period between the date of join and +365 days and the renewal is the same (from the renewal date and +365) if the contract is indefinite then employee will have 30 days every year where the year is the period between the date of join it's every 365 days so the contract has not renewal but the employee will have 30 days annually. for example, if indefinite and date of join is 1 April 2010 then every period from 1 April until 30 March will have 30 days for the employee I want to calculate the leaves for the employee without having to keep a renew table so it will be calculated based on the leave date and the first date of join. hope I explained it well...

    Technology News @ www.JassimRahma.com

    J L 2 Replies Last reply
    0
    • J Jassim Rahma

      Hi, I need your advise please.. here is the detail::: The employee contract can be definite (with expiry date) or indefinite (open without expiry date). The employee contract will always have date of join if the contract is definite then employee will have 30 days every year where the year is the period between the date of join and +365 days and the renewal is the same (from the renewal date and +365) if the contract is indefinite then employee will have 30 days every year where the year is the period between the date of join it's every 365 days so the contract has not renewal but the employee will have 30 days annually. for example, if indefinite and date of join is 1 April 2010 then every period from 1 April until 30 March will have 30 days for the employee I want to calculate the leaves for the employee without having to keep a renew table so it will be calculated based on the leave date and the first date of join. hope I explained it well...

      Technology News @ www.JassimRahma.com

      J Offline
      J Offline
      Jassim Rahma
      wrote on last edited by
      #2

      so the data will be just one leave table with from and to indicating the leave period for every leave and the result will be 1 April - 31 March - [Total Taken Leaves] - [Total Remaining Leaves]

      Technology News @ www.JassimRahma.com

      1 Reply Last reply
      0
      • J Jassim Rahma

        Hi, I need your advise please.. here is the detail::: The employee contract can be definite (with expiry date) or indefinite (open without expiry date). The employee contract will always have date of join if the contract is definite then employee will have 30 days every year where the year is the period between the date of join and +365 days and the renewal is the same (from the renewal date and +365) if the contract is indefinite then employee will have 30 days every year where the year is the period between the date of join it's every 365 days so the contract has not renewal but the employee will have 30 days annually. for example, if indefinite and date of join is 1 April 2010 then every period from 1 April until 30 March will have 30 days for the employee I want to calculate the leaves for the employee without having to keep a renew table so it will be calculated based on the leave date and the first date of join. hope I explained it well...

        Technology News @ www.JassimRahma.com

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        See http://www.codeproject.com/Messages/4895088/Re-calculating-total-time-betweem-time-ranges.aspx[^]. Not exactly the same issue but the principle should be the same.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups