Page 1 of 1

TimeSheetDetailReport

Posted: Fri Jan 19, 2018 5:40 am
by gregory
Running 11.1.1 PHP 7.0 Postgresql 10.1 Have already modified file in class/modules/report to get signature section as desired. Questions are:
- when try to manual update (auto-update not working) get a check sum error because of file so have to download, update, upload. Is there another preferred way to modify signature that does not involve changing the code in the above file?
- Is there a way or where can we modify code so that punches that were modified are highlighted with asterisk or other symbol
- We upload all our punches from our biometric punch clocks using the API (thus specific user). Is there a way (or where can we add code) to mark punches on report by who entered them?
- Would be great if report could show actual punch and punch after rounding

Thanks,

Gregory

Re: TimeSheetDetailReport

Posted: Fri Jan 19, 2018 8:39 am
by shaunw
If you change any of the files in TimeTrex directly, they will get overwritten and lost during any upgrades. Therefore we recommend that you use the plugin system instead to modify TimeTrex's behavior whenever possible.

Re: TimeSheetDetailReport

Posted: Sat Jan 27, 2018 12:15 pm
by gregory
used .../classes/modules/plugins/TimeSheetDetailReport.plugin.example and renamed to TimeSheetDetailReport.plugin. Modified Signature section to what had worked when when tested directly in TimeSheetDetailReport.class.php in .../classes/modules/report

Changed timetrex.ini.php to have enable_plugins = TRUE in [other] section

Ran timesheetdetailreport from interface, but still showed unmodified report the plugin changes did not appear.

What am I missing?

Any way to:
- We upload all our punches from our biometric punch clocks using the API (thus specific user). Is there a way (or where can we add code) to mark punches on report by who entered them?
- Would be great if report could show actual punch and punch after rounding

Thanks

Re: TimeSheetDetailReport

Posted: Sat Jan 27, 2018 2:06 pm
by shaunw
That example plugin by default only works for a single company, you would need to remove that check right near the top to have it activate for all companies.

Re: TimeSheetDetailReport

Posted: Sun Jan 28, 2018 11:41 am
by gregory
Thank you. Missed that if. Replaced with if (true), but still not seeing changes in report signature when run.

Nothing in log about TimeSheetDetailReport

Also:
- We upload all our punches from our biometric punch clocks using the API (thus specific user). Is there a way (or where can we add code) to mark punches on report by who entered them?
- Would be great if report could show actual punch and punch after rounding

Re: TimeSheetDetailReport

Posted: Sun Feb 04, 2018 8:58 am
by gregory
Where can I get more info on Plugins to see why the plugin I modified per your instructions is not firing?

Thanks