Download the PHP package dcodegroup/laravel-xero-timesheet-sync without Composer
On this page you can find all versions of the php package dcodegroup/laravel-xero-timesheet-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dcodegroup/laravel-xero-timesheet-sync
More information about dcodegroup/laravel-xero-timesheet-sync
Files in dcodegroup/laravel-xero-timesheet-sync
Package laravel-xero-timesheet-sync
Short Description This package provides the standard xero functionality for syncing timesheets from your app to Xero.
License MIT
Informations about the package laravel-xero-timesheet-sync
Laravel Xero Timesheet Sync
This package provides the standard xero functionality for syncing timesheets from your app to Xero.
Installation
You can install the package via composer:
Then run the install command.
This will publish the configuration file and the migrations.
Then run the migrations
This will add the following fields to timesheets table and create two new tables.
Configuration
Most of configuration has been set the fair defaults. However you can review the configuration file at config/laravel-xero-timesheet-sync.php
and adjust as needed
You will need to add this field to your fillable array within the Timesheet model. Will not need this if you are extending the base timesheet model as that has guarded [].
It is suggested that you also cast the can_include_in_xero_sync
as a boolean field in the Timesheet
model.
You should add the interface to the Timesheet::class
model.
You should add the following trait to the Timesheet model.
you need to implement these methods
In order for the timesheet row to be used / factored into sending to Xero the timesheets.can_include_in_xero_sync
needs to be flagged / set as true or value 1.
This needs to be implemented at the local app level.
Three helper methods are provided in the XeroTimesheetable.php
trait.
Routes
The following routes are exposed by the package
The package exposes some routes that allow you preview timesheets for a user
You can also view a summary of the timesheets for a period
Jobs
Commands
There is a command you can run to update the Xero configurations from dcodegroup/laravel-xero-payroll-au
via Laravels scheduler
You should add it to your app/Console/Kernel.php
file to run it once a day. You could run it more often if wanted with the --force flag
All versions of laravel-xero-timesheet-sync with dependencies
dcodegroup/laravel-xero-payroll-au Version ^0.1
dcodegroup/laravel-timesheets Version ^0.1
dcodegroup/laravel-xero-oauth Version ^1.0
dcodegroup/laravel-xero-employee Version ^0.1
laravel/framework Version ^7.0|^8.0|^9.0|^10.0