Screens / Payroll settings
Payroll settings
Payroll settings as a page on a phone (owner only; on desktop the same form is the Settings tab of Payroll). The form edits salary proration (working days or calendar days), the work days of the week, the standard hours per day and the pay run frequency, and shows the suggested next period. Save sends only what changed.
- App routes
/payroll/settings- Access
- payroll.manage
- Screen code
lib/screens/payroll/payroll_settings_page.dartlib/screens/payroll/widgets/payroll_settings_form.dartlib/screens/payroll/payroll_controller.dartlib/data/repositories/payroll_repository.dart- Source
- elmermj/panly-app @ pre-staging-test (72aaffd)
API calls (2)
| Call | Why the screen makes it | Where in the app code |
|---|---|---|
GET /v1/payroll-settingsGet payroll settings |
On open: the saved settings fill the form (owner only) | lib/screens/payroll/payroll_controller.dart:107lib/domain/usecases/payroll/payroll_usecase.dart:59lib/data/repositories/payroll_repository.dart:104 |
PATCH /v1/payroll-settingsUpdate payroll settings |
Save changes: only the changed fields (salary_proration, work_days, standard_hours_per_day, frequency); the saved settings replace the form's baseline | lib/screens/payroll/widgets/payroll_settings_form.dart:93lib/screens/payroll/payroll_controller.dart:139lib/domain/usecases/payroll/payroll_usecase.dart:61lib/data/repositories/payroll_repository.dart:112 |
Each call links to its operation in the API reference. Code locations are file:line in panly-app at 72aaffd, listed from the screen down to the line that sends the request.