GithubHelp home page GithubHelp logo

Comments (4)

McPolemic avatar McPolemic commented on July 17, 2024

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.

McPolemic avatar McPolemic commented on July 17, 2024

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.

jhitze avatar jhitze commented on July 17, 2024

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.

McPolemic avatar McPolemic commented on July 17, 2024

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)

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.