Coder Social home page Coder Social logo

delcroip / dolibarr_project_timesheet Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 30.0 8.3 MB

Timesheet view for project in Dolibarr

Home Page: https://demo-timesheet.pmpd.eu

License: GNU Affero General Public License v3.0

PHP 73.81% JavaScript 13.93% CSS 3.38% Dockerfile 0.01% Makefile 0.07% Batchfile 0.08% Python 0.19% HTML 8.52%

dolibarr_project_timesheet's People

Contributors

akashgupta02 avatar bartheyrman22 avatar cfoellmann avatar dekra54 avatar delcroip avatar dolibit-ut avatar frederic34 avatar grandoc avatar madmath03 avatar mapiolca avatar matll42 avatar mika-6-9 avatar milamberspace avatar nicolasb827 avatar pailletm avatar pierretassi avatar vinclar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dolibarr_project_timesheet's Issues

PHP Warning for TimesheetTask.fetch in dolibarr 7

🐛 The signature of the fetch method of projet/class/task.class.php changed in Dolibarr 7, but the timesheet does match this signature, thus sending a warning:

Warning: Declaration of TimesheetTask::fetch($id, $ref = '') should be compatible with Task::fetch($id, $ref = '', $loadparentdata = 0) in D:\htdocs\www\dolibarr-7.0.2\htdocs\timesheet\class\TimesheetTask.class.php on line 27
--


1 | 0.0024 | 519368 | {main}( ) | ...\index.php:0
2 | 0.3893 | 9711256 | FormOther::getBoxesArea( ) | ...\index.php:81
3 | 0.3900 | 9756992 | InfoBox::listBoxes( ) | ...\html.formother.class.php:990
4 | 0.4542 | 14256504 | dol_include_once( ) | ...\infobox.class.php:107
5 | 0.4549 | 14279088 | include_once( 'D:\htdocs\www\dolibarr-7.0.2\htdocs\timesheet\core\boxes\box_approval.php' ) | ...\functions.lib.php:653
6 | 0.4557 | 14355344 | require_once( 'D:\htdocs\www\dolibarr-7.0.2\htdocs\timesheet\core\lib\timesheet.lib.php' ) | ...\box_approval.php:25
7 | 0.4582 | 14773184 | require_once( 'D:\htdocs\www\dolibarr-7.0.2\htdocs\timesheet\class\TimesheetUserTasks.class.php' ) | ...\timesheet.lib.php:69
8 | 0.4635 | 15480808 | require_once( 'D:\htdocs\www\dolibarr-7.0.2\htdocs\timesheet\class\TimesheetTask.class.php' ) | ...\TimesheetUserTasks.class.php:27

[Insight] Database queries should use parameter binding - in timesheet/…/Task_time_approval.class.php, line 275

in timesheet/class/Task_time_approval.class.php, line 275

If provided by the user, the value of $id may allow an SQL injection attack. Avoid concatenating parameters to SQL query strings, and use parameter binding instead.

		$sql.=' t.fk_project_task_timesheet,';
		$sql.=' t.note';

		
        $sql.= " FROM ".MAIN_DB_PREFIX.$this->table_element." as t";
        $sql.= " WHERE t.rowid = ".$id;

    	dol_syslog(__METHOD__);
        $resql=$this->db->query($sql);
        if ($resql)
        {

Posted from SensioLabsInsight

FR: team time management

Hello

I have been looking through this thread (https://www.dolibarr.org/forum/511-creation-of-a-new-module/25010-timesheet-module?start=20 ) and was wondering if you could help me.

I need something similar created for my small shop. I have just started to hire one/two employees on temporary basis. Your timesheet module is currently based on PROJECTS.

I need a timesheet module based on users/employees which can do the following:

· Be based on Dolibarr users

· Have user permissions

· Allow users to submit their timesheets to admin based on start/finish times per day and total hours would be automatically calculated.

· Allow emails to notify user/admin of timesheet submission/approval and then a weekly cron email to admin to give summary of users and hours and amount to be paid (based on user hourly rate)

· Allow to generate pdf OR be able to print timesheets/summaries which are printer-friendly

· Allow user to see their own timesheets

· Allow admin to record/mark/tag rules or entries (e.g. lates, absence, sick, shift swap)

· Allow admin to use Dolibarr calendar with filter only to show staff on/off days etc

I can’t seem to find anything similar for users (not project-based) in or out of Dolibarr which is open source and active. I tried a few types of applications but everything is project-based. Then I thought if I can find something linked within Dolibarr with read/write user permissions it would be better (all in one place).

I hope you can help me. Your feedback would be highly appreciated.

My setup: Dolibarr 5.0.4 on PHP7 and MySQL on a CentOS VPS. I also have a private repository if that helps.

Regards,

Imran # #

Invoice show closed project

Closed project shouldn't be showed in the invoice drop down list --> should show none closed project only

Feature request: report for 3 months

We use your module to track time spent for customer support. The billing is then carried out quarterly.
It would be nice to have an option to report/invoice a calendar quarter instead of a single month.

Kind regards
Nino

Database upgrade not handled

When upgrading from version 1.5.1 to version 2.0, SQL errors are appearing, saying that the table "llx_project_task_time_approval" is missing.

Lang issue

Not translated

  • Submit Querry
  • SubmitAndValidate
  • Personnalisé iso Personalisé in select ( invoice)
  • timesheetSubmitted in timesheet page (in Notify)

Start and settings issue

I installed Dolibarr version 6.0.3 as server on Windows 10. I downloaded timesheet from github ans unzipped to the folder //dolibarr/www/htdocs/custom/

When I open dolibarr, I can see that there is timesheet module under settings/Modules. I enable the module.
When I press settings of the module I get below message:

"""
Fatal error: Arrays are not allowed as constants in C:\dolibarr\www\dolibarr\htdocs\custom\timesheet\core\lib\includeMain.lib.php on line 33
"""

Also, if I press the "Timesheet" button at the top, I get the same message.

Thanks in advance.

Report user, hours aren't show properly

Il doit y avoir un petit souci sur le total des lignes par projet, quand on gère le temps par heure.
Pour un temps total sur une tache de 2 h 55 il semble indiquer 2.9013888888889:55
Sinon, excellent module, merci

Critical and major security issues

🔒 There are major security issues:

  • Database queries should use parameter binding -> SQL injection
  • Global variable or function should never be used -> harder to maintain
  • Source code should not contain FIXME comments -> unreported and unfixed issues
  • exit() and die() functions should be avoided -> use exceptions instead
  • Files should not be executable ->potential security breach

See SensioLabs analysis reports for more details:
SensioLabsInsight

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.