Skip to content

Customization points

Every place you can change what Hour Advantage does has a recipe: a business use case, a policy package that implements it, and the scenarios that prove the change makes a difference (and that the default holds where it does not). The tables below map each customization point to the recipes that use it. Find the point you need to change, then read the recipes beside it.

Recipes are listed on the cookbook page by area and by region, and the Connect recipes on Connect policy recipes.

Time and Attendance

Stages

StageRecipes
holidayholiday_observance, public_holidays_by_location, work_in_several_countries, frontier_workers, new_zealand_holidays_act
leaveleave_rules, balance_below_once_a_year, protected_leave, accrual_waiting_period, leave_increments, floating_holidays, jury_duty_pay, bereavement_leave, leave_on_holidays, leave_charged_before_announcement
pairdouble_punch_lockout, lunch_from_out_and_in, unknown_punch_direction, forgotten_clock_out, device_allowed_by_attribute
matchshift_matching, snap_to_schedule
assignprimary_assignment
attributeovernight_shifts, weekly_overtime, colorado_overtime, weekend_premium, rest_between_shifts, new_zealand_holidays_act, time_zones_in_one_day
timeseven_minute_rounding, tenth_hour_rounding, rounding_without_meals, snap_to_schedule
ratehighest_rate_wins, pay_rate_by_hours_worked, posted_workers
allocateovertime: weekly_overtime, eight_and_eighty_overtime, mexico_federal_labour_law, brazil_clt_working_hours, japan_overtime_premiums, canada_employment_standards, work_period_overtime, california_overtime, alternative_workweek, colorado_overtime, nevada_daily_overtime, daily_overtime_by_location, overtime_after_schedule, uk_contract_overtime, joint_employment_overtime, no_pyramiding, australian_retail_award, philippines_premium_pay, france_overtime; premiums: night_differential, weekend_night_premium, weekend_premium, shift_differential, split_shift_premium, california_split_shift, call_back_pay, reporting_time_pay, meal_period_premium, rest_period_premium, holiday_worked_premium, holiday_pay_if_worked_around, new_zealand_holidays_act, predictive_scheduling, on_call, site_allowance, germany_supplements; money: brazil_clt_working_hours, staffing_agency, piece_rate, productivity_bonus, tips, minimum_wage_by_location, uk_minimum_wage, posted_workers, prevailing_wage, regular_rate_overtime, fluctuating_workweek, overtime_cost_spread; meals and breaks: automatic_meal_deduction, paid_rest_breaks, break_attestation; minors: minor_hours; working time: working_time_directive, germany_working_hours, netherlands_working_hours, two_employments_in_two_countries; status: aca_full_time_status, days_present_by_country, habitual_work_share, frontier_workers; comp time: comp_time; leave: jury_duty_pay, holiday_pay_average_earnings, rolled_up_holiday_pay, uk_statutory_sick_pay, australian_retail_award
accruesick_leave_one_per_thirty, sick_leave_carryover, vacation_by_service, annual_grant, pay_rate_by_hours_worked, overtime_equalization, protected_leave, comp_time, earning_capped_each_year, year_end_by_category, floating_holidays, uk_holiday_entitlement, working_time_account, france_overtime_quota, france_rtt, france_forfait_jours
exceptionsworking_time_directive, germany_working_hours, netherlands_working_hours, late_and_early, rest_between_shifts, no_show, holiday_entered_after, missed_break, attendance_points, paid_rest_breaks, unlinked_people, long_day_review, break_attestation
latelate_change_limits
approveapproval_routing
exportpayroll_export, staffing_agency, certified_payroll, spain_daily_record

The standard steps

StepRecipes
standard/lockout, standard/joindouble_punch_lockout
standard/gap_lunchlunch_from_out_and_in
standard/directionunknown_punch_direction
standard/longest_shiftforgotten_clock_out
standard/device_alloweddevice_allowed_by_attribute
standard/matchshift_matching, snap_to_schedule
standard/assignprimary_assignment
standard/attributeovernight_shifts, weekly_overtime, colorado_overtime, rest_between_shifts, weekend_premium, time_zones_in_one_day
standard/roundseven_minute_rounding, tenth_hour_rounding, rounding_without_meals
standard/gracesnap_to_schedule
standard/thresholdweekly_overtime, overtime_by_jurisdiction, union_contract, individual_agreement, working_week_by_law, decimal_hours and others; tiers: california_overtime, overtime_by_jurisdiction (ca-bc); a tier of the overtime itself (counts = ["overtime"]): mexico_federal_labour_law, australian_retail_award; take_first, over_attribute: uk_contract_overtime; a window of days of its own ({ every, starts }): eight_and_eighty_overtime, work_period_overtime, the calendar month: japan_overtime_premiums
standard/consecutive_daycalifornia_overtime
standard/one_longer_dayaustralian_retail_award
standard/after_scheduleovertime_after_schedule, alternative_workweek, canada_employment_standards (ca-bc-averaging)
standard/shift_positionuk_contract_overtime
standard/unscheduled_dayalternative_workweek, philippines_premium_pay
standard/window_premiumnight_differential, weekend_night_premium, local_time_at_each_site, australian_retail_award, philippines_premium_pay, brazil_clt_working_hours, japan_overtime_premiums
standard/premiumweekend_premium, holiday_worked_premium, on_call, no_pyramiding, australian_retail_award, mexico_federal_labour_law, philippines_premium_pay
standard/auto_mealautomatic_meal_deduction
standard/meal_premiummeal_period_premium, rest_period_premium
standard/second_meal_premiummeal_period_premium
standard/rest_break_premiumrest_period_premium
standard/attested_break_premium, standard/attested_meal_waiver, standard/attestation_requiredbreak_attestation
standard/minimum_paycall_back_pay, reporting_time_pay, on_call
standard/minimum_engagementaustralian_retail_award
standard/split_shiftsplit_shift_premium
standard/split_shift_paycalifornia_split_shift
standard/split_shift_allowance, standard/spread_of_hoursaustralian_retail_award
standard/shortened_hourbrazil_clt_working_hours (an-agreement-shortening-the-clocks-night-alone)
standard/window_premium_run_on, standard/shortened_hour_run_onbrazil_clt_working_hours
standard/long_breakpaid_rest_breaks
standard/short_rest, standard/short_rest_pay, standard/schedule_change_paypredictive_scheduling
standard/limitlong_day_review, minor_hours, japan_overtime_premiums, work_in_several_countries
standard/work_duringminor_hours
standard/allowanceshift_differential, site_allowance, on_call
standard/earningsstaffing_agency, regular_rate_overtime, australian_retail_award, posted_workers
standard/regular_rateregular_rate_overtime, fluctuating_workweek, staffing_agency, overtime_cost_spread
standard/spread_overtime_premiumovertime_cost_spread
standard/spread_overtime_hoursovertime_cost_spread (the-overtime-hours-themselves-instead)
standard/tip_credittips
standard/rest_days_sharebrazil_clt_working_hours
standard/minimum_wageminimum_wage_by_location, uk_minimum_wage
standard/minimum_wage_and_overtimeposted_workers
standard/prevailing_wageprevailing_wage
standard/latelate_and_early, attendance_points, shift_matching, approval_routing
standard/earlylate_and_early, attendance_points
standard/missed_breakmissed_break
standard/flagunlinked_people
standard/restrest_between_shifts
standard/piece_ratepiece_rate
standard/productivity_bonusproductivity_bonus
standard/accruesick_leave_one_per_thirty, sick_leave_carryover, vacation_by_service, pay_rate_by_hours_worked (hours to date), overtime_equalization (counts), protected_leave, comp_time, accrual_waiting_period, earning_capped_each_year
standard/comp_timecomp_time, australian_retail_award, brazil_clt_working_hours
standard/payout_on_leavingcomp_time
standard/payout_unused_afteraustralian_retail_award, brazil_clt_working_hours
standard/grantannual_grant, floating_holidays
standard/earn_limitearning_capped_each_year
standard/carryover_payoutyear_end_by_category
standard/carryoversick_leave_carryover, overtime_equalization, year_end_by_category, floating_holidays
standard/holiday_payholiday_pay_if_scheduled, holiday_pay_after_waiting_period, holiday_pay_if_worked_around, holiday_worked_premium, holiday_observance, leave_not_counted_toward_overtime, philippines_premium_pay
standard/holiday_attendanceholiday_pay_if_worked_around
standard/holiday_pay_if_present_beforephilippines_premium_pay
standard/holiday_pay_from_earningscanada_employment_standards
standard/holiday_pay_otherwise_workingnew_zealand_holidays_act
standard/holiday_average_daily_paynew_zealand_holidays_act
standard/leave_weekly_paynew_zealand_holidays_act
standard/alternative_holidaynew_zealand_holidays_act
standard/rate_tiehighest_rate_wins, posted_workers
standard/rate_by_hourspay_rate_by_hours_worked
standard/late_changeslate_change_limits
standard/approvalapproval_routing
standard/leave_balanceleave_rules, balance_below_once_a_year, protected_leave, floating_holidays
standard/leave_balance_belowbalance_below_once_a_year
standard/leave_blackout, standard/leave_notice, standard/leave_routeleave_rules
standard/leave_entitlement, standard/leave_eligibility, standard/leave_balance_firstprotected_leave
standard/leave_waiting_periodaccrual_waiting_period
standard/leave_incrementleave_increments, floating_holidays
standard/leave_not_on_holidaysleave_on_holidays
standard/leave_days_withinjury_duty_pay
standard/leave_make_up_payjury_duty_pay
standard/leave_rostered_penaltiesaustralian_retail_award
standard/average_limit, standard/weekly_rest, standard/break_timeworking_time_directive, germany_working_hours (not weekly_rest), netherlands_working_hours; average_limit others: two_employments_in_two_countries
standard/monthly_average_limitjapan_overtime_premiums
standard/location_holidays, standard/substitute_daypublic_holidays_by_location; location_holidays: work_in_several_countries, frontier_workers
standard/leave_average_payholiday_pay_average_earnings
standard/leave_waiting_daysuk_statutory_sick_pay
standard/percent_of_payrolled_up_holiday_pay, canada_employment_standards
standard/percent_premiumgermany_supplements
standard/time_account, standard/balance_limitworking_time_account
standard/accrue_beyond, standard/earned_overfrance_overtime_quota, france_forfait_jours (earned_over)
standard/accrue_per_dayfrance_forfait_jours, australian_retail_award
standard/daily_recordspain_daily_record
standard/leave_days_per_requestbereavement_leave
standard/observeholiday_observance
standard/substitute_day_unless_schedulednew_zealand_holidays_act
standard/no_showno_show, attendance_points
standard/holiday_entered_afterholiday_entered_after
standard/full_time_monthly, standard/full_time_look_backaca_full_time_status
standard/days_presentdays_present_by_country; residence: frontier_workers
standard/time_sharehabitual_work_share
standard/csvpayroll_export
standard/certified_payrollcertified_payroll

Settings

SettingRecipes
zone, zones, a location’s zonelocal_time_at_each_site, time_zones_in_one_day
week_startsnine_eighty_workweek, weekly_overtime
day_startsseven_minute_rounding (a-workday-starting-at-four)
decimalsdecimal_hours, tenth_hour_rounding
pay_periodsweekly_overtime, california_overtime, nine_eighty_workweek, franchise_pay_rules, union_contract, automatic_close, annual_grant, leave_rules
categories.*, categories worked and paidpaid_rest_breaks, automatic_meal_deduction, rounding_without_meals, on_call
shifts.earlyshift_differential, call_back_pay
sidesstaffing_agency
accruals.sincesick_leave_one_per_thirty, annual_grant, leave_rules, balance_below_once_a_year
accruals.leave_year_startsbalance_below_once_a_year (a-leave-year-from-july)
close.late_changeslate_change_limits, automatic_close (a-late-punch-after-the-close-is-an-adjustment)
close.after_daysautomatic_close; unset by a layer (unset): without-after-days-nothing-closes

Scenarios

PointRecipes
Clock steps ([[clock]]: time passing, the periods closed then, the events told)automatic_close
A period’s approvedstaffing_agency (the-bill-is-approved-once-every-client-has)
An export of a side ([expect.export] side)staffing_agency (billed-at-the-bill-rate)

Layers

PointRecipes
A layer adding a stepovertime_by_jurisdiction (ca-bc), union_contract
change = "params"overtime_by_jurisdiction, union_contract, individual_agreement, overnight_shifts, no_show, late_change_limits, leave_not_counted_toward_overtime, balance_below_once_a_year
change = "replace"union_contract (a-contract-counts-overtime-by-the-fortnight), highest_rate_wins, holiday_observance, piece_rate, rounding_without_meals, unknown_punch_direction, overtime_cost_spread (the-overtime-hours-themselves-instead)
change = "disable", "enable"overtime_by_jurisdiction (gb, a-contract-turns-overtime-back-on), call_back_pay, holiday_worked_premium, overtime_cost_spread (without-the-spread-the-branch-worked-last-carries-it)
A layer’s settings, unsetdecimal_hours, seven_minute_rounding, weekly_overtime, union_contract (local-9), automatic_close
before, afterovertime_by_jurisdiction, union_contract
orderovertime_by_jurisdiction, union_contract, individual_agreement
from, revision (a dated revision)union_contract (the-new-contract-from-its-first-day)
locksfranchise_pay_rules, working_week_by_law

Eligibility keys

KeyRecipes
personindividual_agreement
workerindividual_agreement (an-agreement-that-follows-the-worker)
employerjoint_employment_overtime, work_in_several_countries, posted_workers
unlinkedunlinked_people
locationfranchise_pay_rules
jurisdictionovertime_by_jurisdiction, daily_overtime_by_location, canada_employment_standards, posted_workers
attributes.<name>overtime_by_jurisdiction (a-contract-turns-overtime-back-on), minor_hours, work_period_overtime, pay_rate_by_hours_worked, comp_time, leave_increments
under <hierarchy>:<org>union_contract

Policy packages

PointRecipes
A package of layers (package.toml), adoptedevery recipe
A package’s own steps (main.lua)payroll_export, staffing_agency (their exporters)
A shared package, adopted by many tenantsfranchise_pay_rules, overtime_by_jurisdiction, working_week_by_law
A version effective from a dayworking_week_by_law (the-reform-applies-from-its-day)
Following a major version, pinning oneworking_week_by_law (a-tenant-pinning-the-old-version-keeps-it)
A package’s locks refusing a tenant’s layerfranchise_pay_rules, working_week_by_law

What a step reads

The standard steps the recipes use read these; a package’s own step reads them the same way.

HelperRecipes
ctx:person(day): employment and attributesholiday_pay_after_waiting_period, vacation_by_service, annual_grant, minor_hours, habitual_work_share, frontier_workers
ctx:person(day).orgs and chain, organizations’ metadatasite_allowance
ctx:person(day).locationlocal_time_at_each_site (the zone of the work location); daily_overtime_by_location (as the eligibility key jurisdiction); days_present_by_country (its values)
ctx:person(day).unlinkedunlinked_people (as an eligibility key)
A punch’s device (ctx.punches), with ctx:person(day).attributesdevice_allowed_by_attribute
ctx:other_recordsjoint_employment_overtime, two_employments_in_two_countries
ctx:tenant().metadatalong_day_review
ctx:day(date): shifts, holidays, leaveon_call, call_back_pay, holiday_pay_after_waiting_period
ctx:at, ctx:weekday, ctx:add_daysweekend_premium, on_call, site_allowance
ctx:rate, ctx:money_for, ctx:add_quantitystaffing_agency, piece_rate, tips, shift_differential, on_call, site_allowance, jury_duty_pay
ctx:share, ctx:quantities of the days before the periodregular_rate_overtime (a-week-across-two-pay-periods-is-one-regular-rate), overtime_cost_spread (a-week-across-two-pay-periods-spreads-by-the-whole-weeks-hours)
ctx:split_quantity, ctx:split_line, a quantity’s stepovertime_cost_spread
ctx:average_week, looks_back as a function of the parametersholiday_pay_average_earnings
ctx:shifts_as_of, ctx.window.previous_endpredictive_scheduling
ctx:run_onbrazil_clt_working_hours (through window_premium_run_on and shortened_hour_run_on)
ctx:attestation(date), a line’s stepbreak_attestation
ctx:add_hourscall_back_pay, on_call, reporting_time_pay, meal_period_premium
ctx:balance_after, ctx:balance_changesleave_rules, balance_below_once_a_year, protected_leave
ctx:bookleave_on_holidays, leave_charged_before_announcement
ctx.request.approved, ctx:day(date).holidays[i].announcedleave_charged_before_announcement
ctx:leave_taken, ctx:earnedprotected_leave, earning_capped_each_year, jury_duty_pay
A leave request’s values (ctx.request.values)bereavement_leave
ctx:balance of an allocate step (reads_balances), ctx:pay_outcomp_time, year_end_by_category
ctx:period and periods as parameters: a year by where it starts, a blackout, the weekend’s nightsbalance_below_once_a_year, leave_rules, weekend_night_premium, night_differential, annual_grant, sick_leave_carryover, late_change_limits
ctx:exceptionattendance_points, unlinked_people, long_day_review, staffing_agency, device_allowed_by_attribute
ctx:lines() and a line’s workedshift_differential (a-paid-lunch-is-not-worked-and-earns-none)
An exporter’s approved, of the period and of each linestaffing_agency (each-client-approves-its-own-placements-hours)
An exporter’s line rates and time.moneystaffing_agency (billed-at-the-bill-rate, an-invoice-works-the-money-out-once), certified_payroll
An exporter’s time.add_dayscertified_payroll (a-two-week-pay-period-is-a-form-a-week)

Setup the policy reads

SetupRecipes
Assignments, implications, dimensionsstaffing_agency, primary_assignment
Rates (pay and bill kinds, from a date)staffing_agency, piece_rate, highest_rate_wins; a project’s rate table by classification: prevailing_wage (a-new-wage-determination-from-a-day)
Measures (counts and money), labor entriespiece_rate, productivity_bonus, tips
Shifts and shift definitions, with valuesshift_differential, on_call, shift_matching
Schedule overridesreporting_time_pay, no_show, overtime_after_schedule
Break attestationsbreak_attestation
Holidaysholiday_observance, holiday_pay_if_scheduled
Accrual categories and adjustmentssick_leave_carryover, leave_rules, balance_below_once_a_year
Approval rules, and stages waiting on an organizationapproval_routing, staffing_agency
Approval by assignment (subject = "assignment"), an assignment’s own organizationstaffing_agency (each-client-approves-its-own-placements-hours, an-exception-holds-back-only-its-clients-hours)
Hierarchies and organizationsunion_contract, site_allowance, staffing_agency
Work locationsovertime_by_jurisdiction, local_time_at_each_site, daily_overtime_by_location, work_in_several_countries
A location’s values, the labor context its days’ work takes; implications from a clock’s sitework_in_several_countries

Connect

PointRecipes
route hookroute-by-work-code, multi-agency-clock
joined hookclock-lifecycle
moved hookclock-lifecycle
back hookclock-lifecycle, repaired-clock
enrolled hooklink-by-pin, onboard-first, enroll-for-the-agency
Effects: actionsclock-lifecycle, repaired-clock
Effects: jobsrepaired-clock
Effects: person (external_ids)link-by-pin
Effects: person (routes, labels, metadata)enroll-for-the-agency
Effects: deleteonboard-first
Routes and their codesroute-by-work-code, multi-agency-clock, enroll-for-the-agency
Selectors (selectors): the device labels they pick by, read by a hookonboard-first, multi-agency-clock, enroll-for-the-agency
Selectors: the person labels a placement rule’s people picks by, written by a hookenroll-for-the-agency

Protocol packages: a message sent again

A device that did not get its reply sends the same message again, and what a package does with the repeat is its own choice: keep it, pass it on with the same key (the event id is made from the record, and Time and Attendance keeps a punch once by it), or drop it. The bundled packages show dropping: packages/zk/zk.lua (zk.attlog, a digest of each punch line, the last 500 in the device’s store, scenarios *-resend.toml of the three ZK packages) and packages/brightlink/cloud-1.0 (the message id, the last 256, 07-resend.toml). The package tells the device OK for a repeat all the same, so the device goes on. Both numbers are guesses at a generous margin, not checked against real devices. The scenarios say the same batch twice gives one event and two OKs.

Points with no recipe

  • Effects: commands: a command is the protocol package’s own, by name (actions), so a recipe would hold for one make of clock only. A hook names commands as it names actions.
  • Connect shared policy packages: any recipe above is published as a shared package (hourctl pkg publish --shared) and adopted as Time and Attendance’s are (franchise_pay_rules, working_week_by_law).

Each recipe’s layers

Each package layer is listed with its eligibility rule, where it has one, then its settings and its steps (standard/ left off). Scenarios with a layer of their own are those that show a variant, or, for individual_agreement, union_contract and the shared packages, the tenant’s own layer the recipe is about.

RecipePackage layers: settings and stepsScenarios with a layer of their ownLua left
aca_full_time_statusmeasurement: pay_periods, full_time_look_back, full_time_look_backthe-monthly-method-insteadnone
accrual_waiting_periodsick-leave: pay_periods, accruals, accrue, leave_waiting_period, leave_balancea-wait-of-six-monthsnone
alternative_workweekfour-tens: after_schedule, unscheduled_day, threshold, threshold-none
annual_grantgrant: pay_periods, accruals, grant-none
approval_routingapproval: late, threshold, approval-none
balance_below_once_a_yearleave: pay_periods, accruals, leave_balance, leave_balance_belowtwice-a-year-allows-a-second, a-leave-year-from-july, keeping-a-day-in-hand, keeping-a-day-in-hand-in-a-new-year, a-year-that-starts-under-the-amount, a-hand-adjustment-under-the-amount-countsnone
attendance_pointspoints: late, early, no_show-none
australian_retail_awardaward: window_premium, one_longer_day, threshold, premium, window_premium, threshold, premium, window_premium, window_premium, window_premium, earnings; casual (attributes.employment = casual): params wages; rostered-days-off (attributes.rdo = true): accruals, params weekly, accrue_per_day; time-off-in-lieu (attributes.toil = true): accruals, comp_time, accrue, payout_unused_after; broken-shifts (attributes.broken_shifts = true): spread_of_hours, split_shift_allowance; minimum-engagement (attributes.employment in (casual, part_time)): minimum_engagement; shiftworkers (attributes.shiftworker = true): leave_rostered_penalties-none
automatic_closeclose: pay_periods, closewithout-after-days-nothing-closesnone
automatic_meal_deductionmeal: categories, auto_meal, threshold-none
bereavement_leavebereavement: leave_days_per_requesta-day-for-anyone-elsenone
brazil_clt_working_hoursjornada: pay_periods, shortened_hour_run_on, threshold, threshold, premium, window_premium, window_premium_run_on, window_premium_run_on, window_premium_run_on, earnings, rest_days_share; hour-bank (attributes.hour_bank = true): accruals, comp_time, accrue, payout_unused_aftera-collective-agreement-allows-a-year, an-agreement-shortening-the-clocks-night-alonenone
break_attestationbreaks: categories, meal_premium, rest_break_premium, attested_break_premium, attested_break_premium, attested_meal_waiver, attestation_required-none
california_overtimeovertime: pay_periods, threshold, consecutive_day, threshold-none
california_split_shiftsplit-shift: split_shift_pay-none
call_back_paycall-back: threshold, minimum_paya-call-back-across-midnightnone
canada_employment_standardspay: earnings, percent_of_pay; vacation-6 (attributes.vacation_weeks = 3): params vacation-pay; ca-on (jurisdiction = ca-on): threshold, holiday_pay_from_earnings; ca-bc (jurisdiction = ca-bc): threshold, threshold, holiday_pay_from_earnings; ca-ab (jurisdiction = ca-ab): threshold, threshold, holiday_pay_from_earnings; ca-on-averaging (jurisdiction = ca-on and attributes.averaging_weeks = 2): params weekly; ca-ab-averaging (jurisdiction = ca-ab and attributes.averaging_weeks = 4): params weekly; ca-bc-averaging (jurisdiction = ca-bc and attributes.averaging_weeks = 4): params daily, after_schedule, params weekly-none
certified_payrollprevailing-wage: pay_periods, week_starts, threshold, prevailing_wagea-two-week-pay-period-is-a-form-a-weeknone
colorado_overtimeovertime: attribute, threshold, threshold, threshold-none
comp_timeovertime: pay_periods, accruals, threshold; comp-time (attributes.comp_time = true): comp_time, accrue, payout_on_leaving; safety (attributes.comp_time = true and attributes.safety = true): comp_time (cap)-none
daily_overtime_by_locationus-ca (jurisdiction = us-ca): threshold; us-ak (jurisdiction = us-ak): threshold; us-nv (jurisdiction = us-nv and attributes.nv_daily_overtime = true): threshold; us-co (jurisdiction = us-co): threshold-none
days_present_by_countrydays-present: days_present (four)-none
decimal_hourshours: decimals, thresholdtenths-of-an-hournone
device_allowed_by_attributedevices: device_allowed-none
double_punch_lockoutpunches: lockout, join-none
earning_capped_each_yearsick-leave: pay_periods, accruals, accrue, earn_limita-year-from-the-anniversary-of-hirenone
eight_and_eighty_overtimeovertime: pay_periods, threshold, thresholdpaid-weekly-the-fourteen-days-run-onnone
floating_holidaysfloating: pay_periods, accruals, carryover, grant, leave_balance, leave_increment-none
forgotten_clock_outlongest-shift: longest_shiftflagged-not-closednone
fluctuating_workweekfluctuating-workweek: threshold, regular_rate-none
france_forfait_joursforfait (attributes.forfait_jours = true): accruals, accrue_per_day, earned_over-none
france_overtime35-heures: threshold-none
france_overtime_quotacontingent: accruals, threshold, accrue, accrue_beyond, earned_overhalf-an-hour-for-each-hour-in-a-small-companynone
france_rttrtt: accruals, threshold, accrue-none
franchise_pay_rulespay: pay_periods; overtime: thresholda-location-adds-its-own-layer, a-location-cannot-loosen-the-overtimenone
frontier_workersholidays: location_holidays, holiday_pay; days-present: days_present-none
germany_supplementszuschlaege: earnings, percent_premium, percent_premium, percent_premium-none
germany_working_hoursarbeitszeit: limit, average_limit, rest, break_time-none
habitual_work_sharework-share: time_share-none
highest_rate_winsrates: rate_tie, piece_ratethe-job-rate-is-preferrednone
holiday_observanceholidays: observe, holiday_paya-saturday-holiday-is-not-observednone
holiday_pay_after_waiting_periodholiday-pay: holiday_paythe-scheduled-time-is-paidnone
holiday_pay_if_worked_aroundholiday-pay: holiday_pay, holiday_attendance-none
holiday_pay_if_scheduledholiday-pay: holiday_pay-none
holiday_worked_premiumholidays: holiday_pay, premiumnight-shifts-around-the-holiday, split-at-midnight-pays-the-holidays-hoursnone
individual_agreementcompany: thresholdan-agreement-that-follows-the-worker, everyone-else-keeps-the-company-rule, the-agreement-is-theirsnone
japan_overtime_premiumslabour-standards: pay_periods, window_premium, threshold, threshold, threshold, window_premium (four), limit (four), monthly_average_limit, earnings-none
joint_employment_overtimeacme-ca-joint (employer = acme-ca): threshold-none
holiday_pay_average_earningsholiday: leave_average_pay-none
jury_duty_payjury-duty: pay_periods, leave_make_up_pay, leave_days_withina-fixed-jury-fee-when-none-is-entered, a-day-with-no-rate-is-raisednone
holiday_entered_afterlate-holidays: holiday_entered_afterannounced-after-the-day, announced-before-the-daynone
late_and_earlyattendance: late, early-none
late_change_limitslate-changes: late_changestoo-long-after-the-close-is-refusednone
leave_incrementssick-hours: leave_increment; exempt-days (attributes.exempt = true): leave_increment-none
leave_charged_before_announcementcharged-before-announcement: leave_charged_before_announcement/leave_charged_before_announcement, leave_balance, holiday_payapproved-before-the-announcement-stays-charged, approved-after-the-announcement-is-not-chargednone
leave_on_holidaysleave-on-holidays: leave_not_on_holidays, leave_balance, holiday_paywithout-the-recipe-the-holiday-is-drawnnone
leave_not_counted_toward_overtimeovertime: holiday_pay, thresholda-company-that-counts-leavenone
leave_rulesleave: pay_periods, accruals, leave_balance, leave_blackout, leave_notice, leave_route-none
local_time_at_each_sitesites: window_premium-none
long_day_reviewreview: limit-none
meal_period_premiummeal-premium: categories, meal_premium, second_meal_premium-none
mexico_federal_labour_lawjornada: threshold, threshold, threshold, premium, earnings; rest-day-monday (attributes.rest_day = monday): params rest-day, premium-none
minimum_wage_by_locationminimum-wage: minimum_wagetips-count-where-a-tip-credit-is-allowednone
minor_hoursminors (attributes.minor = true): limit, limit, work_during-none
missed_breakbreaks: missed_break-none
netherlands_working_hoursarbeidstijdenwet: limit, limit, average_limit, average_limit, weekly_rest, rest, break_time-none
nevada_daily_overtimeovertime: threshold-none
night_differentialdifferential: window_premium-none
new_zealand_holidays_actholidays-act: accruals, substitute_day_unless_scheduled, attribute, premium, holiday_pay_otherwise_working, alternative_holiday, earnings, leave_weekly_pay, accrue; average-daily-pay (attributes.daily_pay_varies = true): disable public-holiday-not-worked, holiday_average_daily_pay-none
nine_eighty_workweekworkweek: pay_periods, week_starts, threshold-none
no_pyramidingovertime: premium, threshold, thresholdovertime-first-then-the-holiday-premium, a-company-that-counts-holiday-hours-toward-overtimenone
no_showno-show: no_showpending-leave-and-a-working-holidaynone
on_callon-call: allowance, premium, minimum_pay-none
overnight_shiftsovernight: attribute, thresholdwhole-to-the-day-it-ends, whole-to-the-day-it-starts, a-whole-night-the-clocks-go-back-pays-the-hour-repeated, a-whole-night-the-clocks-go-forward-pays-the-hours-worked, a-night-across-the-start-of-the-workweeknone
overtime_after_scheduleafter-schedule: after_scheduleunscheduled-days-as-regularnone
overtime_by_jurisdictionweekly: threshold; ca-on (jurisdiction = ca-on): params weekly; ca-bc (jurisdiction = ca-bc): threshold; au (jurisdiction = au): params weekly; gb (jurisdiction = gb): disable weeklya-contract-turns-overtime-back-onnone
overtime_cost_spreadovertime: threshold, earnings, regular_rate, spread_overtime_premiumdaily-overtime-and-double-time-are-spread-too, without-the-spread-the-branch-worked-last-carries-it, the-overtime-hours-themselves-instead, a-week-across-two-pay-periods-spreads-by-the-whole-weeks-hoursnone
overtime_equalizationequalization: pay_periods, accruals, threshold, accrue, accrue, accrue, carryover, carryover, carryovera-contract-that-equalizes-each-quarternone
paid_rest_breaksrest-breaks: categories, long_breakbreaks-count-as-worked, only-short-breaks-are-paidnone
pay_rate_by_hours_workedpay: pay_periods, accruals, earnings; electrician-apprentices (attributes.classification = electrician_apprentice): accrue, rate_by_hours-none
payroll_exportdaily: thresholdone-line-per-earning-codefixed_width, an exporter: the payroll system’s fixed-width file layout
piece_ratepieces: piece_rateone-rate-for-everythingnone
philippines_premium_paypremium-pay: threshold, premium, premium, premium, premium, unscheduled_day (six), holiday_pay, holiday_pay_if_present_before, window_premium (twelve), earnings-none
predictive_schedulingfair-workweek: short_rest, schedule_change_paya-flat-amount-for-each-clopeningnone
public_holidays_by_locationholidays: location_holidays, holiday_pay; gb (jurisdiction in (gb-eng, gb-sct)): substitute_day; de (jurisdiction in (de-by, de-be)): params holiday-pay-none
posted_workerspolish-contract (employer = acme-pl): threshold, threshold, rate_tie, earnings; posted-to-france (jurisdiction = fr): minimum_wage_and_overtime-none
prevailing_wageprevailing-wage: pay_periods, week_starts, threshold, prevailing_wage-none
primary_assignmentassignment: assigna-preference-that-does-not-fitnone
productivity_bonusbonus: productivity_bonus-none
protected_leavefamily-leave: pay_periods, accruals, accrue, leave_eligibility, leave_entitlement, leave_balance_first, leave_balancea-leave-year-from-july, twelve-months-from-the-first-use, the-rolling-twelve-months-before-each-use, a-use-more-than-twelve-months-back-is-not-counted, an-earlier-use-asked-for-later-counts-against-the-uses-after-it, past-the-entitlement-flagged-for-the-approver, a-lower-bar-of-hours, not-eligible-flagged-for-the-approver, service-from-the-current-hire; the others turn eligibility off to show the entitlement alonenone
rolled_up_holiday_paypay: earnings; rolled-up (attributes.rolled_up_holiday_pay = true): percent_of_payvacation-pay-of-four-per-centnone
regular_rate_overtimeovertime: threshold, earnings, allowance, regular_rateovertime-at-the-rate-of-the-job-it-is-worked-on, a-meal-premium-is-paid-at-the-regular-rate, a-week-across-two-pay-periods-is-one-regular-ratenone
reporting_time_payreporting: minimum_payhalf-of-the-scheduled-shiftnone
rest_period_premiumrest-premium: categories, meal_premium, rest_break_premium-none
rest_between_shiftsrest: attribute, rest-none
rounding_without_mealsrounding: categories, roundrounding-every-punch-would-shorten-the-mealnone
seven_minute_roundingrounding: rounda-workday-starting-at-fournone
shift_differentialdifferential: allowanceovertime-on-nights-earns-it-toonone
shift_matchingmatching: match, late-none
sick_leave_carryoversick: carryover, accrue-none
sick_leave_one_per_thirtysick-leave: accruals, threshold, accrue-none
site_allowanceremote: allowance-none
snap_to_schedulesnap: match, graceno-shift-and-lunch-punchesnone
spain_daily_recordjornada: categoriesovertime-is-part-of-the-daynone
split_shift_premiumsplit_shift: split_shift-none
staffing_agencyagency: threshold, threshold, earnings, regular_ratethe-pay-goes-in-the-measure-namedpayroll and invoice, exporters: the agency payroll’s file layout and each client’s invoice, its hours priced at their bill rates
tenth_hour_roundingrounding: decimals, round-none
time_zones_in_one_dayworkdays: attribute, threshold-none
tipstip_credit: tip_credita-higher-cash-wage-leaves-less-to-make-up, a-higher-minimum-asks-more, the-make-up-goes-where-the-policy-namesnone
two_employments_in_two_countriesworking-time: average_limit-none
uk_contract_overtimecontract: holiday_pay, shift_position, threshold, shift_position, window_premium, earningsthe-employer-chooses-the-hours-after-the-shift-firstnone
uk_holiday_entitlementholiday: accruals, carryover, grant; irregular-hours (attributes.irregular_hours = true): disable grant, accrue-none
uk_statutory_sick_payssp: leave_waiting_days; from-day-one (from 2026-04-06): params waiting-none
uk_minimum_wageminimum-wage: pay_periods, minimum_wage-none
union_contractcompany: pay_periods, thresholda-contract-counts-overtime-by-the-fortnight, a-long-day-is-double-time-for-members, another-unions-members-keep-the-company-week, members-get-the-contracts-week, the-new-contract-from-its-first-daynone
unknown_punch_directiondirection: directionnearer-the-start-or-the-endnone
unlinked_peopleunlinked (unlinked = true): flag-none
vacation_by_servicevacation: accrueearlier-service-when-the-policy-counts-it, the-cap-stops-the-tiers-earningnone
weekend_night_premiumweekend-nights: window_premium-none
weekend_premiumweekend: premiumsplit-at-midnight-the-saturday-hours-are-weekendnone
weekly_overtimeovertime: week_starts, attribute, thresholda-week-across-two-pay-periodsnone
work_in_several_countriesholidays: location_holidays, holiday_pay; german-contract (employer = acme-de): limit, limit-none
work_period_overtimepay: pay_periods; fire (attributes.service = fire): threshold; police (attributes.service = police): thresholda-seven-day-work-periodnone
working_week_by_lawworking-week: thresholda-tenant-cannot-loosen-the-lawnone
working_time_accountkonto: accruals, time_account, balance_limit-none
working_time_directivelimits: average_limit, weekly_rest, rest, break_time; night (attributes.night_worker = true): average_limit; hazardous-night (attributes.night_worker = true and attributes.hazardous = true): limita-fixed-reference-period, forty-eight-hours-in-fourteen-days, an-individual-opt-outnone
year_end_by_categoryyear-end: pay_periods, accruals, carryover_payout, carryover, carryover_payoutvacation-paid-out-at-a-leave-year-from-julynone

Only two recipes keep Lua, and both for a file format: their three exporters write the receiving system’s own layout (payroll_export’s fixed-width file; staffing_agency’s payroll and invoice). The standard package has the others: csv (payroll_export’s CSV of earning codes), daily_record (spain_daily_record) and certified_payroll.

What the recipes need, and the standard step that does it

NeedStandard stepRecipes
Tiers of one thresholdthreshold tierscalifornia_overtime
A daily limit with one longer day a weekone_longer_dayaustralian_retail_award
Overtime over a fixed period of days of its own (14 days, a 7- to 28-day work period)threshold window = { every, starts }eight_and_eighty_overtime, work_period_overtime
No hour paid two premiums; which premium an hour getsthe order of premium and threshold, and their countsno_pyramiding
Overtime counting other recordsthreshold othersjoint_employment_overtime
A weekly average limit counting other recordsaverage_limit otherstwo_employments_in_two_countries
The Nth consecutive day workedconsecutive_daycalifornia_overtime
Overtime past the scheduleafter_scheduleovertime_after_schedule
Time before, in and after the scheduled shiftshift_positionuk_contract_overtime
The hours taken first as overtime, a person’s own hoursthreshold take_first, over_attributeuk_contract_overtime
Punches within a grace of the shiftgracesnap_to_schedule
Leaving earlyearlylate_and_early, attendance_points
Points for attendancekind, points on late, early, no_showattendance_points
Automatic meal deductionauto_mealautomatic_meal_deduction
Meal period premiummeal_premiummeal_period_premium, rest_period_premium
A second meal’s premium, one meal premium a daysecond_meal_premiummeal_period_premium
Rest period premiumrest_break_premiumrest_period_premium
A break not provided, attested, pays its premiumattested_break_premiumbreak_attestation
A meal waived, attested, owes no premium on a short dayattested_meal_waiverbreak_attestation
A day of work with no attestation, for reviewattestation_requiredbreak_attestation
A day beyond the scheduleunscheduled_dayalternative_workweek
Minimum pay (reporting, call-back, a call-out)minimum_payreporting_time_pay, call_back_pay, on_call
A minimum engagement, a meal break keeping it oneminimum_engagementaustralian_retail_award
Split shift premiumsplit_shiftsplit_shift_premium
Split shift premium at the minimum wage, less pay above itsplit_shift_paycalifornia_split_shift
A split shift allowance in money, and work past a spread of hourssplit_shift_allowance, spread_of_hoursaustralian_retail_award
A night hour shorter than an hour (52 minutes 30 seconds), counted toward overtimeshortened_hourbrazil_clt_working_hours (an-agreement-shortening-the-clocks-night-alone)
The night worked whole and worked on past its end is night to the end of the work: its premium and its shorter hourwindow_premium_run_on, shortened_hour_run_on (ctx:run_on)brazil_clt_working_hours
Missed breaksmissed_breakmissed_break
Long breakslong_breakpaid_rest_breaks
A premium for the hours in a short rest, or an amount for eachshort_rest, short_rest_paypredictive_scheduling
Pay for a schedule changed inside its noticeschedule_change_paypredictive_scheduling
Hours limits (a long day, a minor’s day or week)limitlong_day_review, minor_hours
Work in hours flagged (a minor’s evenings and early mornings)work_duringminor_hours
Time in a period of the day or week (nights, the weekend’s nights)window_premiumnight_differential, weekend_night_premium, local_time_at_each_site
Time on given days or workpremiumweekend_premium, holiday_worked_premium, on_call
Money an hour (a differential, an allowance, standby)allowanceshift_differential, site_allowance, on_call
Earnings at a rateearningsstaffing_agency, regular_rate_overtime
Overtime at the regular rateregular_rateregular_rate_overtime, fluctuating_workweek, staffing_agency
Overtime premium’s cost spread over the places workedspread_overtime_premiumovertime_cost_spread
Overtime hours spread over the places workedspread_overtime_hoursovertime_cost_spread
Tip credittip_credittips
A paid weekly rest on the pay of the period, overtime includedrest_days_sharebrazil_clt_working_hours
Minimum wage by location, tips toward itminimum_wageminimum_wage_by_location
Prevailing wage by project and classification, its fringe met by benefits or cashprevailing_wageprevailing_wage
A flag on every day workedflagunlinked_people
Holiday pay after a waiting periodholiday_pay after_daysholiday_pay_after_waiting_period
Holiday pay for working the days around itholiday_attendanceholiday_pay_if_worked_around
Holiday pay due only for presence or paid leave the workday beforeholiday_pay_if_present_beforephilippines_premium_pay
Holiday pay from the earnings of the weeks before, over a number or the days workedholiday_pay_from_earningscanada_employment_standards
Holiday pay on an otherwise working day, by the roster or the pattern of workholiday_pay_otherwise_workingnew_zealand_holidays_act
Holiday pay at the average daily pay of the year beforeholiday_average_daily_paynew_zealand_holidays_act
Leave at the greater of ordinary weekly pay and average weekly earningsleave_weekly_paynew_zealand_holidays_act
A day in lieu for a holiday worked on an otherwise working dayalternative_holiday, accruenew_zealand_holidays_act
A yearly grantgrantannual_grant
A carryover limitcarryoversick_leave_carryover
Accrual by years of serviceaccrue tiersvacation_by_service
Full-time status by the month or by look-back, reported with its hoursfull_time_monthly, full_time_look_backaca_full_time_status
A rate by the hours worked to date (rungs, steps), the hours kept as a balanceaccrue, rate_by_hourspay_rate_by_hours_worked
Counts of hours to date (overtime worked, refused and offered), started again each yearaccrue (an hour an hour, by the day), carryover (limit = "0h")overtime_equalization
Protected leave held to weeks of the usual week, in a period of the employer’s choiceleave_entitlementprotected_leave
Eligibility for protected leave by service and hours workedleave_eligibilityprotected_leave
Paid leave used before unpaidleave_balance_firstprotected_leave
Overtime banked as comp time under a capcomp_timecomp_time
A balance paid out on leavingpayout_on_leavingcomp_time
Time banked and not used within a period of being earned, paid outpayout_unused_afteraustralian_retail_award, brazil_clt_working_hours
A waiting period before leave is usedleave_waiting_periodaccrual_waiting_period
A yearly limit on what is earnedearn_limitearning_capped_each_year
A carryover limit, the rest paid outcarryover_payoutyear_end_by_category
Leave in whole incrementsleave_incrementleave_increments, floating_holidays
A day of leave on a holiday booked at nothingleave_not_on_holidays (ctx:book)leave_on_holidays
A number of days of a kind of leave in a yearleave_days_withinjury_duty_pay
Make-up pay for leave paid elsewhere (jury duty)leave_make_up_payjury_duty_pay
An average of hours a week over a reference period of weeks, flaggedaverage_limitworking_time_directive
An average of hours a month over any span of 2 to 6 months, flaggedmonthly_average_limitjapan_overtime_premiums
Rest in each week, or each fortnight in stretches of a least lengthweekly_restworking_time_directive
Break time by the length of the daybreak_timeworking_time_directive
Holidays kept by each work location, a weekend holiday on the next free weekdaylocation_holidays, substitute_daypublic_holidays_by_location
A weekend holiday moved for those not rostered that day (Mondayisation)substitute_day_unless_schedulednew_zealand_holidays_act
A host country’s minimum rate and overtime premium on the hours worked there, where higher than the contract’sminimum_wage_and_overtimeposted_workers
Days present in each country, reported, and flagged in each country’s own tax yeardays_presentdays_present_by_country
The share of working time in the country of residence over 12 months, flagged at 25%time_sharehabitual_work_share
Each line records where it was worked: the day’s work location’s values, a clock’s sitea location’s values, implicationswork_in_several_countries
Leave at the greater of its loading and the roster’s penaltiesleave_rostered_penaltiesaustralian_retail_award
Leave paid at the average pay of the weeks with pay before itleave_average_payholiday_pay_average_earnings
Waiting days of a period of incapacity, linked periods for three years followed through their reports, waiting days removed from a dayleave_waiting_daysuk_statutory_sick_pay
Premiums as a per cent of the rate that add up (night, Sunday, holiday)percent_premiumgermany_supplements
A balance of hours over and under a target, its limits flaggedtime_account, balance_limitworking_time_account
Earned past a yearly amount (compensatory rest past a quota), and passing it flaggedaccrue_beyond, earned_overfrance_overtime_quota
Days worked counted (rostered days off earned by the day)accrue_per_dayfrance_forfait_jours, australian_retail_award
A daily record of each day’s start and end of workdaily_record (exporter)spain_daily_record
Pay as a per cent of pay (rolled-up holiday pay, vacation pay)percent_of_payrolled_up_holiday_pay
Days of leave by a value of the request (bereavement by relationship)leave_days_per_requestbereavement_leave
Earning codes in an exportcsv codes, bypayroll_export
A certified payroll of a project, a week at a timecertified_payrollcertified_payroll
Counting days worked, stretches of work, the instant some time has passedctx:days_worked, ctx:stretches, ctx:instant_after, ctx:lines(filter)every step above
A day’s shifts as the schedule stood at an instant; when the work before a day endedctx:shifts_as_of, ctx.window.previous_endpredictive_scheduling