Skip to main content
Labor rules define how FileXpress interprets attendance: which hours are day or night hours, how many regular hours a workday has, from when an hour is overtime, how much each type of hour is surcharged, and what tolerances apply to tardiness. They are used to calculate schedule compliance and the hours breakdown proposed in payroll. They are configured in Human Resources → Labor rules.
The country templates (El Salvador, Guatemala, and Colombia) are a starting point based on each country’s Labor Code. They are not a substitute for legal advice: the company must validate them with its labor advisor and adjust them to its collective agreement, internal regulations, or recent changes in the law before using them to pay.

Country template or own rules

  • If the company has no rules of its own, its country’s template is used and the screen indicates it with the notice “The company uses the country template”.
  • To adjust any value, first copy the template and then edit it. From that moment the company’s rules apply.
1

Go to Human Resources → Labor rules → Copy from country template

2

Choose the country, the template, and the Effective from date

3

Copy

A company-owned validity period is created with the template’s values. If there was a previous open validity period, it is closed the day before.
4

Edit current to adjust the values

Validity periods

Rules are stored by validity period (from date and, optionally, to date). This way a change in law does not alter the calculation of previous months: a new validity period is created that starts on the date of the change. There cannot be two active validity periods that overlap.
When you edit rules that already have attendance calculated in their validity period, the results are recalculated automatically (up to the last 90 days). Days included in a processed or paid payroll are not modified.

What is configured

Business days deducts the rest days of the employee’s current schedule (or the default rest days if they have no schedule) and full-day holidays. The Guatemala and Colombia templates count vacation in business days; El Salvador’s, in calendar days. A change in the count applies to new requests.

How hours are classified

For each employee and day, FileXpress takes the check-in and check-out punches and compares them with their schedule, the holidays, and these rules:
1

Hours worked

The time between check-in and check-out (or between each pair of punches) is calculated. If the break is unpaid and the employee did not clock it, the shift’s break is deducted.
2

Day or night

Each minute is labeled according to the day or night band it falls in. A shift can cross midnight: the hours of the next day are labeled with their own date (for example, the hours after 00:00 on December 25 are holiday hours).
3

Workday class

According to the country’s rule, the workday is day, night, or mixed. In El Salvador and Guatemala, if the night hours reach the threshold, the whole workday is treated as night. In Colombia there is no mixed workday: each hour keeps its band.
4

Regular or overtime

The first hours worked, up to the day’s limit, are regular; the rest are overtime. The limit is the lower of the scheduled shift’s hours and the legal maximum for the workday class. If overtime is also measured weekly, the day’s regular hours cannot exceed what remains to reach the weekly maximum.
5

Day type

Hours worked on a rest day or holiday go to those categories, keeping the regular/overtime split.
The result is 12 categories: regular or overtime × day or night × normal day, rest day, or holiday. Each one has its multiplier over the regular day hour.

Examples with the templates

Day band from 06:00 to 19:00. If a workday has more than 4 night hours, it is entirely night. Daily maximum: 8 h day, 7 h night, 8 h mixed. Multiplicative surcharges: night +25 %, day overtime +100 %, night overtime +150 %, rest day +50 %, holiday (asueto) +100 %.
Multipliers are over the value of the regular day hour. How they convert into money depends on the employee’s pay type.

See also