Panly API docsstaging

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.dart
lib/screens/payroll/widgets/payroll_settings_form.dart
lib/screens/payroll/payroll_controller.dart
lib/data/repositories/payroll_repository.dart
Source
elmermj/panly-app @ pre-staging-test (72aaffd)

API calls (2)

CallWhy the screen makes itWhere in the app code
GET /v1/payroll-settings
Get payroll settings
On open: the saved settings fill the form (owner only) lib/screens/payroll/payroll_controller.dart:107
lib/domain/usecases/payroll/payroll_usecase.dart:59
lib/data/repositories/payroll_repository.dart:104
PATCH /v1/payroll-settings
Update 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:93
lib/screens/payroll/payroll_controller.dart:139
lib/domain/usecases/payroll/payroll_usecase.dart:61
lib/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.