Skip to main content

pres.shift_advanced_settings

Schema: pres
English table: pres.shift_advanced_settings
Italian original table: pres.orari_adv
Description: Advanced configuration for shifts, handling tolerances, rounding, and automatic period insertions.

Overview

  • Columns: 39
  • Primary key: id
  • Outgoing foreign keys: 2
  • Incoming foreign keys: 0
  • Indexes: 0

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary Key.
sas_shift_idora_idintegerNOUnique identifier of the associated shift.
tenant_idtenant_idintegerNOTenant identifier for data isolation.
sas_shift_codecod_oracharacter(4)NO''::bpcharReference code for the shift (max 4 chars).
sas_is_enabledora_enabledbooleanNOfalseBoolean flag to enable or disable these advanced settings.
sas_flexibility_typeora_tim_flexnumeric(1,0)NO0Numeric flag for flexibility calculation logic (0=Fixed, 1=Flexible).
sas_p1_start_timeora_p1_dallenumeric(4,0)NO0Theoretical start time for the first period (Format: HHMM).
sas_p1_end_timeora_p1_allenumeric(4,0)NO0Theoretical end time for the first period (Format: HHMM).
sas_p2_start_timeora_p2_dallenumeric(4,0)NO0Theoretical start time for the second period (Format: HHMM).
sas_p2_end_timeora_p2_allenumeric(4,0)NO0Theoretical end time for the second period (Format: HHMM).
sas_min_durationora_lung_minnumeric(4,0)NO0Minimum required work duration for the shift (minutes).
sas_max_durationora_lung_maxnumeric(4,0)NO0Maximum allowed work duration for the shift (minutes).
sas_use_inbound_paramsora_parametribooleanNOfalseIf true, applies entry tolerance and rounding parameters.
sas_p1_early_toleranceora_p1_tolantnumeric(2,0)NO0Minutes of tolerance for early arrival in period 1.
sas_p1_late_toleranceora_p1_tolritnumeric(2,0)NO0Minutes of tolerance for late arrival in period 1.
sas_p1_early_roundingora_p1_arrantnumeric(2,0)NO0Rounding interval in minutes for early arrival in period 1.
sas_p1_late_roundingora_p1_arrritnumeric(2,0)NO0Rounding interval in minutes for late arrival in period 1.
sas_p2_early_toleranceora_p2_tolantnumeric(2,0)NO0Minutes of tolerance for early arrival in period 2.
sas_p2_late_toleranceora_p2_tolritnumeric(2,0)NO0Minutes of tolerance for late arrival in period 2.
sas_p2_early_roundingora_p2_arrantnumeric(2,0)NO0Rounding interval in minutes for early arrival in period 2.
sas_p2_late_roundingora_p2_arrritnumeric(2,0)NO0Rounding interval in minutes for late arrival in period 2.
sas_p1_inter_period_roundingora_inter_p1numeric(2,0)NO0Rounding applied to intervals within period 1.
sas_p2_inter_period_roundingora_inter_p2numeric(2,0)NO0Rounding applied to intervals within period 2.
sas_break_roundingora_arr_pausanumeric(2,0)NO0Rounding interval applied to lunch or mid-day breaks.
sas_recover_overtimeora_recupera_esuberobooleanNOfalseFlag to allow automatic recovery of excess time worked.
sas_ignore_latenessora_no_ritardibooleanNOfalseIf true, system does not flag late arrivals as anomalies.
sas_auto_insert_punch_timeora_ins_timbra_orarionumeric(4,0)NO0Fixed time used for automatic punch insertion (HHMM).
sas_min_duration_toleranceora_tol_lung_minnumeric(3,0)YES0Tolerance applied to the minimum shift duration.
sas_max_duration_toleranceora_tol_lung_maxnumeric(3,0)YES0Tolerance applied to the maximum shift duration.
sas_use_outbound_paramsora_parametri_outbooleanYESfalseIf true, applies exit tolerance and rounding parameters.
sas_p1_auto_insert_durationora_p1_da_inserirenumeric(4,0)YES0Duration to be automatically inserted for period 1 (HHMM).
sas_p2_auto_insert_durationora_p2_da_inserirenumeric(4,0)YES0Duration to be automatically inserted for period 2 (HHMM).
sas_overtime_in_mandatory_slotora_esubero_in_fascia_obbbooleanNOfalseIf true, overtime is calculated even within mandatory presence windows.
sas_prevent_day_overflowora_evita_sconfinamentobooleanNOfalseIf true, prevents calculations from crossing the midnight boundary incorrectly.
sas_ignore_breakora_ignora_pausabooleanNOfalseFlag to exclude break deduction from total hours.
sas_auto_insert_justificationora_insert_causalebooleanYESfalseEnables automatic insertion of a justification code.
sas_justification_codeora_cod_caucharacter(4)YES''::bpcharReference code of the justification to be automatically inserted.
sas_slot_typeora_tipo_fascianumeric(1,0)YES0Category of the time slot for payroll aggregation purposes.
sas_justification_fixed_valueora_cau_valore_fissonumeric(4,0)YES0Fixed numeric value to assign to the automatic justification.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_sas_shift_definitionstenant_id, sas_shift_codepres.shift_definitionstenant_id, shd_codeCASCADECASCADE
fk_sas_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_shift_advanced_settingsid
  • Unique: c_uk_sas_tenant_shift_codetenant_id, sas_shift_code
  • Unique: c_uk_sas_tenant_shift_idtenant_id, sas_shift_id

Indexes

No indexes detected.