T1 Electrical SolutionsT1 Platform Docs
Operations

Commands and Operational Checks

Commands and Operational Checks

Run commands from t1-platform/app unless noted otherwise.

Recalculate allowance lines

Dry run:

php bin/console app:allowances:recalculate-timesheets --limit=50

Persist:

php bin/console app:allowances:recalculate-timesheets --force --limit=50

Specific timesheet:

php bin/console app:allowances:recalculate-timesheets --force --id=<timesheet-id>

Recalculate award calculations

php bin/console app:award:recalculate-timesheets --force

Use after changing award rates, matrix rules, or calculation feature flags for existing submitted/accepted/approved timesheets.

Timesheet hours/risk utilities

Available command classes include:

  • RecalculateTimesheetHoursCommand
  • RecalculateTimesheetRiskCommand
  • NormalizeTimesheetWeekEndingCommand
  • ReportDuplicateTimesheetsCommand

Xero utilities

Available command classes include:

  • SubmitExpensesTimesheetsToXeroCommand
  • DebugXeroCommand
  • TestXeroConnectionCommand
  • SyncUsersToXeroCommand

Auth0 utilities

Available command classes include:

  • InspectAuth0TokenCommand
  • FixAuth0IdCommand
  • SyncUsersToAuth0Command
  • TestAuth0ManagementCommand

On this page