Skip to main content

pres.attendance_reasons

Schema: pres
English table: pres.attendance_reasons
Italian original table: pres.tabgiu
Description: Master table for all attendance and absence reason codes (Justifications).

Overview

  • Columns: 62
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 13
  • Indexes: 1

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
ar_reason_idgiu_idintegerNOUnique internal identifier for the attendance reason.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
ar_codecod_giucharacter(4)NO''::bpcharMnemonic code (e.g., FER, MAL, STR). High-level identifier.
ar_descriptiongiu_descrizionecharacter(40)NO''::bpcharFull description of the reason.
ar_payroll_code_activegiu_paghe_attcharacter(4)NO''::bpcharExport code for current payroll processing.
ar_payroll_code_historicalgiu_paghe_precharacter(4)NO''::bpcharExport code used for retroactive payroll adjustments.
ar_math_signgiu_segnocharacter(1)NO''::bpcharAlgebraic sign (+/-) determining if the value adds to or subtracts from balances.
ar_is_compensablegiu_compensabilebooleanNOfalseWhether the time can be used for time-off-in-lieu (banca ore).
ar_is_paidgiu_retribuitobooleanNOfalseIf the time associated is remunerated.
ar_is_regular_workgiu_ordinariebooleanNOfalseFlag for standard worked hours.
ar_is_absencegiu_assenzabooleanNOfalseFlag identifying the reason as an absence (vacation, sickness, etc.).
ar_is_overtimegiu_straordinariobooleanNOfalseFlag for overtime hours.
ar_is_premiumgiu_maggiorazionebooleanNOfalseIndicates if this is a shift premium or shift allowance (maggiorazione).
giu_proporzionalegiu_proporzionalebooleanNOfalseBoolean flag for giu proporzionale.
ar_short_namegiu_abbreviazionecharacter(3)NO''::bpchar3-character abbreviation for compact grid displays.
giu_utile_per_compgiu_utile_per_compbooleanNOfalseBoolean flag for giu utile per comp.
ar_calculation_percentagegiu_percentualenumeric(7,2)NO0Multiplier percentage for the value (e.g., 150.00 for 50% overtime).
ar_calculate_daysgiu_calc_giornibooleanNOfalseBoolean flag for ar calculate days.
giu_asscompgiu_asscompbooleanNOfalseBoolean flag for giu asscomp.
ar_allow_overtime_calculationgiu_calc_straobooleanNOfalseTime associated with ar allow overtime calculation.
giu_prop_presgiu_prop_presbooleanNOfalseBoolean flag for giu prop pres.
giu_supplementarigiu_supplementaribooleanNOfalseBoolean flag for giu supplementari.
giu_zerogiu_zerobooleanNOfalseBoolean flag for giu zero.
giu_rapidogiu_rapidobooleanNOfalseBoolean flag for giu rapido.
giu_defaultgiu_defaultnumeric(2,0)NO0Value of giu default.
giu_giornigiu_giornicharacter(8)NO''::bpcharValue of giu giorni.
giu_prop_timbgiu_prop_timbbooleanNOfalseBoolean flag for giu prop timb.
ar_is_hiddengiu_nascostobooleanNOfalseBoolean flag for ar is hidden.
giu_prop_tim_tolleranzagiu_prop_tim_tolleranzanumeric(2,0)YES0Value of giu prop tim tolleranza.
giu_convers_giornigiu_convers_giorninumeric(1,0)YES0Value of giu convers giorni.
ar_is_clocking_derivedgiu_bollatobooleanYESfalseIf true, the reason is generated by a physical clock-in/out event.
giu_non_estenderegiu_non_estenderebooleanNOfalseBoolean flag for giu non estendere.
giu_no_controllo_fascegiu_no_controllo_fascebooleanNOfalseBoolean flag for giu no controllo fasce.
ar_rounding_minutesgiu_arrotondamentonumeric(2,0)NO0Rounding rule in minutes applied to the total duration.
ar_internal_notesgiu_notetextNO''::textValue of ar internal notes.
ar_web_portal_notesgiu_web_notetextNO''::textValue of ar web portal notes.
ar_linked_counter_idgiu_cnt_collegatointegerNO0ID of the counter (acd_counter_id) automatically updated by this reason.
ar_subtract_break_timegiu_sottrai_pausabooleanNOtrueIf true, the automatic break deduction is applied to this reason.
giu_rigidogiu_rigidobooleanNOfalseBoolean flag for giu rigido.
giu_rigido_arrot_precgiu_rigido_arrot_precnumeric(2,0)NO0Value of giu rigido arrot prec.
giu_rigido_arrot_succgiu_rigido_arrot_succnumeric(2,0)NO0Value of giu rigido arrot succ.
giu_pag_arrotondagiu_pag_arrotondanumeric(1,0)YES0Value of giu pag arrotonda.
giu_pag_arrotonda_valoregiu_pag_arrotonda_valorenumeric(2,0)YES0Value of giu pag arrotonda valore.
giu_prop_mingiu_prop_minintegerYES0Value of giu prop min.
giu_prop_maxgiu_prop_maxintegerYES999Value of giu prop max.
ar_daily_limit_hoursgiu_limite_giornonumeric(6,2)YES0Maximum hours allowed per day for this reason.
ar_weekly_limit_hoursgiu_limite_settimananumeric(6,2)YES0Value of ar weekly limit hours.
ar_monthly_limit_hoursgiu_limite_mesenumeric(6,2)YES0Value of ar monthly limit hours.
ar_yearly_limit_hoursgiu_limite_annonumeric(6,2)YES0Value of ar yearly limit hours.
ar_limits_enabledgiu_abilita_limitibooleanYESfalseBoolean flag for ar limits enabled.
ar_is_prevailing_reasongiu_prevalentebooleanYESfalseBoolean flag for ar is prevailing reason.
giu_timb_pausagiu_timb_pausabooleanYESfalseBoolean flag for giu timb pausa.
giu_valore_minimogiu_valore_minimointegerYES0Value of giu valore minimo.
giu_gest_minimogiu_gest_minimonumeric(1,0)YES0Value of giu gest minimo.
giu_cal_assenzegiu_cal_assenzenumeric(1,0)YES0Value of giu cal assenze.
ar_ui_colorgiu_colorecharacter varying(10)YES''::character varyingHEX or CSS color code for UI/Calendar representation.
giu_no_fergiu_no_ferbooleanYESfalseBoolean flag for giu no fer.
giu_no_pargiu_no_parbooleanYESfalseBoolean flag for giu no par.
giu_no_rogiu_no_robooleanYESfalseBoolean flag for giu no ro.
giu_no_fesgiu_no_fesbooleanYESfalseBoolean flag for giu no fes.
_deleted_deletedbooleanYESfalseFlag indicating whether the record is soft-deleted.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_tabgiu_tenant_id_to_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

From tableForeign keySource columnsTarget columns
pres.attendance_reason_cascadesfk_arc_child_reasontenant_id, arc_child_reason_codetenant_id, ar_code
pres.attendance_reason_cascadesfk_arc_parent_reasontenant_id, arc_parent_reason_codetenant_id, ar_code
pres.clocking_reason_mappingsfk_crm_justificationtenant_id, crm_target_justification_codetenant_id, ar_code
pres.custom_calculationsfk_cca_reason_typetenant_id, cca_reason_codetenant_id, ar_code
pres.daily_attendance_justificationsfk_daj_reason_definitiontenant_id, daj_reason_codetenant_id, ar_code
pres.holiday_calendarfk_hol_reason_typetenant_id, hol_reason_codetenant_id, ar_code
pres.leave_transformation_rulesfk_ltr_source_reasontenant_id, ltr_source_reason_codetenant_id, ar_code
pres.leave_transformation_rulesfk_ltr_target_reasontenant_id, ltr_target_reason_codetenant_id, ar_code
pres.long_term_absencesfk_lta_reason_definitiontenant_id, lta_reason_codetenant_id, ar_code
pres.monthly_justification_aggregatesfk_mja_reason_definitiontenant_id, mja_reason_codetenant_id, ar_code
pres.overtime_and_premium_rulesfk_opr_target_attendance_reasontenant_id, opr_target_reason_codetenant_id, ar_code
pres.payroll_additional_reasonsfk_par_reason_typetenant_id, par_reason_codetenant_id, ar_code
pres.weekly_justification_aggregatesfk_wja_reason_definitiontenant_id, wja_reason_codetenant_id, ar_code

Constraints

  • Primary key: pk_attendance_reasonsid
  • Unique: c_uk_ar_tenant_codetenant_id, ar_code
  • Unique: c_uk_ar_tenant_reason_idtenant_id, ar_reason_id

Indexes

NameUniqueMethodColumns / expression
idx_ar_tenant_activeNObtreetenant_id) WHERE (_deleted = false