Giter Club home page Giter Club logo

Comments (3)

Balaji-Ganesh avatar Balaji-Ganesh commented on September 21, 2024 1

Need to change the variable name from nextUseStatus to permissionStatus.

from gatepassapplication_kmit.

Balaji-Ganesh avatar Balaji-Ganesh commented on September 21, 2024

Added the enhancement.

Notes used for adding the feature:

  • Added two new attributes nextUseStatus, a boolean value and scannedAt, timestamp - to store the first scan timestamp (i.e., scan before going to lunch) and verify for next scan.

Phase-1: at checking

  • When student with the lunch pass
    1. Came before lunch -- if nextUseStatus == true allow..
    2. Came after lunch - nextUseStatus will be false, so check with the scan time, if its on same day use scannedAt attribute.
    3. Came before lunch, but previously, didn't came after lunch. This time nextUseStatus will be false and scannedAt timestamp will be older. So, there will be day(s) difference in today's timestamp and earlier timestamp. So deny the permission.

Phase-2: at updation

  • if nextUseStatus == true, make it false and update the scannedAt with the current scan timestamp.
  • if nextUseStatus == false, find the difference (between current time and scannedAt), if 0, then make it true.

If any student got mis-used lunch pass, then they have to contact the admin to update or consult teacher for re-issue of the permission -- this still need discussion, whether can be updated or not (From Shiva's side).

from gatepassapplication_kmit.

Balaji-Ganesh avatar Balaji-Ganesh commented on September 21, 2024

Change done..!!

from gatepassapplication_kmit.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.