TimeSheetDetailReport

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Post Reply
gregory
Posts: 102
Joined: Fri Oct 28, 2011 3:39 pm

TimeSheetDetailReport

Post 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
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: TimeSheetDetailReport

Post 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.
gregory
Posts: 102
Joined: Fri Oct 28, 2011 3:39 pm

Re: TimeSheetDetailReport

Post 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
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: TimeSheetDetailReport

Post 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.
gregory
Posts: 102
Joined: Fri Oct 28, 2011 3:39 pm

Re: TimeSheetDetailReport

Post 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
gregory
Posts: 102
Joined: Fri Oct 28, 2011 3:39 pm

Re: TimeSheetDetailReport

Post by gregory »

Where can I get more info on Plugins to see why the plugin I modified per your instructions is not firing?

Thanks
Post Reply