Payroll Engine Web Application
Part of the Payroll Engine open-source payroll automation framework.
Full documentation at payrollengine.org.
The Web Application provides full access to the Payroll Engine. For a better understanding of the working concepts, it is recommended to read the Payroll Engine Whitepaper.
Contents
Prerequisites
Localization
| Language |
Code |
Status |
| English |
en |
Stable |
| German |
de |
Stable |
| French |
fr |
Beta |
| Italian |
it |
Beta |
| Dutch |
nl |
Beta |
| Spanish |
es |
Beta |
| Portuguese |
pt |
Beta |
| Arabic |
ar |
Beta |
Beta translations are machine-generated and may contain inaccuracies. Contributions and corrections are welcome.
Features
The functions of the web app are divided into features:
| Feature |
Group |
Description |
| Tasks |
General |
Manage the user tasks |
| Employee Cases |
General |
Add new employee case |
| Company Cases |
General |
Add new company case |
| National Cases |
General |
Add new national case |
| Global Cases |
General |
Add new global case |
| Reports |
General |
Build reports 1) |
| Forecasts |
General |
Run payroll forecasts |
| Payrun Results |
Payrun |
View and Export payrun results |
| Payrun Jobs |
Payrun |
Start and manage payrun jobs |
| Payruns |
Payrun |
Add or change a payrun |
| Payrolls |
Payroll |
Add or change payroll and clusters |
| Payroll Layers |
Payroll |
Add or change payroll layer |
| Regulations |
Payroll |
Add or remove regulation |
| Regulation |
Payroll |
Derived regulation edit |
| Shared Regulations |
Administration |
Manage shared regulations |
| Tenants |
Administration |
Add or change a tenant |
| Users |
Administration |
Add or change users 2) 3) |
| Calendars |
Administration |
Add or change a payroll calendar |
| Divisions |
Administration |
Add or change a division |
| Employees |
Administration |
Add or change an employee |
| Webhooks |
Administration |
Add or change webhooks and messages |
| Logs |
Administration |
View the tenant logs 4) |
| User Storage |
System |
Manage the local user storage |
1) Based on FastReports.
2) The available functions can be assigned to the user.
3) The "Administrator" user type can manage all functions.
4) Tenant logs are generated by the regulations and should not be confused with the application log.
Setup
1. Configure the backend connection
Set the backend URL via environment variable (recommended):
# Windows
set PayrollApiConnection=BaseUrl=https://localhost; Port=44354;
# Docker / Linux
export PayrollApiConnection="BaseUrl=http://localhost; Port=5001;"
Or add it to appsettings.json:
{
"ApiSettings": {
"BaseUrl": "https://localhost",
"Port": 44354
}
}
Store sensitive configuration in User Secrets for local development.
2. Start the server
# Run from the binary output folder
dotnet PayrollEngine.WebApp.Server.dll --urls=https://localhost:7179/
# Run from the project folder (Server/)
dotnet run --urls=https://localhost:7179/
# Visual Studio
Open PayrollEngine.WebApp.sln and start with the debugger
The web application is accessible at the configured URL.
User Login
The Web Application requires at least one tenant and user in the backend database.
Use the PayrollConsole CLI to import payroll data:
pecmd PayrollImport <exchange-file.json>
See the Getting Started guide and the Container Setup documentation for a complete walkthrough.
Password Rules
When logging in for the first time, the user must choose a password that complies with the following rules:
- at least 8 characters
- 1 numeric character
- 1 lower case character
- 1 upper case character
- 1 special character
Developer login
In debug mode the web application can be started with an automatic login. The desired context is defined with the program settings AutoLogin, StartupTenant and StartupUser. In this mode it is possible to switch between the tenants.
Application Configuration
The server configuration file appsettings.json contains the following settings:
Startup Configuration
| Setting |
Description |
Type |
Default |
StartupCulture |
The web application process culture |
string |
System culture |
StartupTenant |
The startup tenant using the auto login option 1) |
string |
- |
StartupUser |
The startup user using the auto login option 1) |
string |
- |
AutoLogin |
Automatic logon using the StartupTenant and StartupUser 1) |
bool |
false |
ClearStorage |
Clear the user storage |
bool |
false |
1) Only in debug mode
App Configuration
| Setting |
Description |
Type |
Default |
AppTitle |
The application title |
string |
Payroll Engine |
AppImage |
The application image |
string |
Payroll Engine image |
AppImageDarkMode |
The application dark mode image |
string |
Payroll Engine image |
DarkMode |
Default dark mode at startup |
bool? |
User system setting |
AdminEmail |
The administration email for error pages |
string |
- |
ProductUrl |
The product url |
string |
- |
PreferredCultures |
Preferred cultures in dropdown lists 1) |
string[] |
- |
DefaultFeatures |
The default features for new users |
string[] |
- |
AllowTenantSwitch |
Allow to switch between tenants |
bool |
false |
LogHttpRequests |
Log Http request to file |
bool |
false |
LogCaseChanges |
Add case changes to the tenant log |
bool |
false |
SessionTimeout |
Web application user session timeout |
timespan |
10 minutes |
ExcelExportMaxRecords |
Maximum count of excel export rows |
int |
10'000 |
MaxDownloadSize |
Maximum download size |
long |
512'000 |
1) Preferred cultures examples: [ "en-US", "en-AU", "de"]
Components Configuration
| Setting |
Description |
Type |
Default |
ButtonVariant |
Button variant: Text, Filled, Outlined |
string |
Filled |
ButtonAltVariant |
Alternate button variant: Text, Filled, Outlined |
string |
Filled |
ToolButtonVariant |
Toolbar button variant: Text, Filled, Outlined |
string |
Filled |
TooltipDelay |
Tooltip delay in milliseconds |
double |
1000 |
DataGridRowsPerPage |
Data grid rows per page |
int |
25 |
Security Configuration
| Setting |
Description |
Type |
Default |
AllowInsecureSsl |
Skip backend SSL certificate validation (dev only) |
bool |
false |
AllowedHosts |
Allowed host names for request filtering |
string |
* |
In production, the application enables HSTS (HTTP Strict Transport Security) to enforce HTTPS connections.
Payroll Http Configuration
| Setting |
Description |
Type |
Default |
BaseUrl |
The backend base url |
string |
|