Comments (4)
This probably has two components: jQuery should refuse to submit until the hour limits are compliant (with the 24/168 limits), and then Django should return an error if the total amount for a week is greater as well.
The jQuery should be simple, as there's already a field updating with the total amount for the day/week.
from btms.
If you find a date that has over 24 dates, you can turn all fields red for the warning (implied or stated) with something like
$("input[id^=date20120403_]").css('border', '1px solid #BD362F');
from btms.
i like the idea of a warning on the page. maybe it'll be possible to track > 24 hours in a day.
Like doing two things at once all day.
Or getting called in on a vacation day.
I think there is at least a case for entering more hours than possible for a day.
from btms.
I'm not so sure. Doing two things at once would just break down into half the day being one, half the other. We certainly couldn't bill a client for doing 30 hours in one day, so I don't think it should be tracked that way.
With regards to vacation, it should simply by 8 hours - the time you worked, so you still get credit for the vacation time you couldn't take that day.
from btms.
Related Issues (18)
- Input fields in time sheet don't have unique names
- Save button doesn't work HOT 1
- Tasks don't show up in My Tasks
- column total values not automatic HOT 2
- Weekly totals not automatic HOT 2
- Delete buttons missing
- No error with unsaved data HOT 1
- Search page does not load HOT 1
- Reports page does not load HOT 1
- Timesheet warns when saving
- "UnboundLocalError" when saving HOT 2
- lock timesheet after deadline HOT 1
- save bug HOT 1
- Delete button in My Tasks does nothing HOT 1
- Need a way to provide status messages to the user
- Tasks aren't separated by users
- Comments
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 btms.