Comments (3)
Need to change the variable name from nextUseStatus
to permissionStatus
.
from gatepassapplication_kmit.
Added the enhancement.
Notes used for adding the feature:
- Added two new attributes
nextUseStatus
, a boolean value andscannedAt
, 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
- Came before lunch -- if
nextUseStatus == true
allow.. - Came after lunch -
nextUseStatus
will befalse
, so check with the scan time, if its on same day usescannedAt
attribute. - Came before lunch, but previously, didn't came after lunch. This time
nextUseStatus
will befalse
andscannedAt
timestamp will be older. So, there will be day(s) difference in today's timestamp and earlier timestamp. So deny the permission.
- Came before lunch -- if
Phase-2: at updation
- if
nextUseStatus == true
, make itfalse
and update thescannedAt
with the current scan timestamp. - if
nextUseStatus == false
, find the difference (between current time andscannedAt
), if0
, then make ittrue
.
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.
Change done..!!
from gatepassapplication_kmit.
Related Issues (12)
- Fetch student images without including extensions HOT 1
- Preventing unauthorised access to the application HOT 1
- Updating the overall current UI to modern, good-looking UI HOT 1
- Add a launch screen HOT 1
- Permission updation for the gatepass student after usage HOT 1
- Fixing the bug of Mobile number authentication HOT 4
- Making the constraint to application to work only in vertical mode - as disturbing design HOT 1
- Scanner is not being in ready state to scan a new QR code once after scan
- Removing the redundant history screen
- Enhancing the mobilenumber authentication and OTP entry UI HOT 2
- Auto scan of OTP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatepassapplication_kmit.