Skip to main content

pres.attendance_counter_definitions

Schema: pres
English table: pres.attendance_counter_definitions
Italian original table: pres.tab_contatori
Description: Core configuration for attendance counters (accruals, carry-forwards, limits, and calculation formulas).

Overview

  • Columns: 53
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 2
  • Indexes: 2

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
acd_counter_idcnt_idintegerNOUnique internal identifier for the counter.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
acd_group_idcnt_grp_idintegerNO0Reference to the counter group (counter_groups).
acd_namecnt_nomecharacter(20)NO''::bpcharMnemonic name/code of the counter.
acd_descriptioncnt_descrizionetextNO''::textDescription of acd description.
acd_initial_value_typecnt_val_ini_tiponumeric(1,0)NO0Value of acd initial value type.
acd_initial_valuecnt_val_ininumeric(9,2)NO0Value of acd initial value.
acd_reset_initial_value_on_periodcnt_val_ini_reimpostabooleanNOfalseBoolean flag for acd reset initial value on period.
acd_valid_fromcnt_daldateNOValue of acd valid from.
acd_valid_tocnt_aldateNOValue of acd valid to.
acd_update_modecnt_tipo_aggnumeric(1,0)NO0Date associated with acd update mode.
acd_unit_of_measurecnt_udmnumeric(1,0)NO0Value of acd unit of measure.
acd_is_periodiccnt_periodicobooleanNOfalseIf true, the counter resets or accrues based on a time period.
acd_period_reference_datecnt_periodo_data_partenzadateNODate associated with acd period reference date.
acd_period_durationcnt_periodonumeric(2,0)NO0Value of acd period duration.
acd_period_start_modecnt_periodo_partenzanumeric(1,0)NO0Value of acd period start mode.
acd_frequency_valuecnt_per_ogninumeric(4,0)NO0Value of acd frequency value.
acd_frequency_unitcnt_peri_udmnumeric(1,0)NO0Value of acd frequency unit.
acd_calculation_operationcnt_operazionenumeric(1,0)NO0Value of acd calculation operation.
acd_value_source_typecnt_valore_tipo1numeric(1,0)NO0Value of acd value source type.
acd_value_source_codecnt_valore_tipo2character(10)NO''::bpcharCode of acd value source code.
acd_calculation_expressioncnt_valore_exprtextNO''::textFormula used to calculate the value to add/subtract to the counter.
acd_carry_forward_enabledcnt_val_precbooleanNOfalseIf true, the balance from the previous period is carried over.
acd_a1_min_thresholdcnt_az1_minimonumeric(9,2)NO0Value of acd a1 min threshold.
acd_a1_max_thresholdcnt_az1_massimonumeric(9,2)NO0Value of acd a1 max threshold.
acd_a1_operatorcnt_az1_opernumeric(1,0)NO0Value of acd a1 operator.
acd_a1_alert_codecnt_az1_alertcharacter(4)NO''::bpcharCode of acd a1 alert code.
acd_a2_min_thresholdcnt_az2_minimonumeric(9,2)NO0Value of acd a2 min threshold.
acd_a2_max_thresholdcnt_az2_massimonumeric(9,2)NO0Value of acd a2 max threshold.
acd_a2_operatorcnt_az2_opernumeric(1,0)NO0Value of acd a2 operator.
acd_a2_alert_codecnt_az2_alertcharacter(4)NO''::bpcharCode of acd a2 alert code.
acd_a3_min_thresholdcnt_az3_minimonumeric(9,2)NO0Value of acd a3 min threshold.
acd_a3_max_thresholdcnt_az3_massimonumeric(9,2)NO0Value of acd a3 max threshold.
acd_a3_operatorcnt_az3_opernumeric(1,0)NO0Value of acd a3 operator.
acd_a3_alert_codecnt_az3_alertcharacter(4)NO''::bpcharCode of acd a3 alert code.
acd_min_allowed_valuecnt_limite_minimonumeric(9,2)NO0Value of acd min allowed value.
acd_max_allowed_valuecnt_limite_massimonumeric(9,2)NO0Value of acd max allowed value.
acd_sort_ordercnt_orderintegerNO0Value of acd sort order.
acd_carry_forward_periods_countcnt_val_prec_n_periodinumeric(2,0)NO0Value of acd carry forward periods count.
acd_apply_to_all_employeescnt_x_tuttibooleanNOfalseBoolean flag for acd apply to all employees.
acd_check_min_limitcnt_controlla_minimobooleanNOfalseBoolean flag for acd check min limit.
acd_check_max_limitcnt_controlla_massimobooleanNOfalseBoolean flag for acd check max limit.
acd_consume_previous_period_firstcnt_consumo_precbooleanYESfalseBoolean flag for acd consume previous period first.
acd_negative_value_expressioncnt_valore_expr_negtextYES''::textValue of acd negative value expression.
acd_is_visible_on_webcnt_webbooleanNOfalseBoolean flag for acd is visible on web.
acd_pro_rata_for_part_timecnt_prop_ptimebooleanYESfalseTime associated with acd pro rata for part time.
acd_block_on_min_limitcnt_blocca_minimobooleanYESfalseBoolean flag for acd block on min limit.
acd_block_on_max_limitcnt_blocca_massimobooleanYESfalseBoolean flag for acd block on max limit.
acd_balance_transfer_targetcnt_dest_saldosmallintYES0Target counter or balance where the residual value is moved at the end of the period.
acd_balance_transfer_expressioncnt_expr_saldotextYES''::textValue of acd balance transfer expression.
acd_balance_transfer_reason_codecnt_causale_saldocharacter(4)YES''::bpcharCode of acd balance transfer reason code.
_deleted_deletedbooleanNOfalseFlag indicating whether the record is soft-deleted.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_acd_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

From tableForeign keySource columnsTarget columns
pres.attendance_counter_balancesfk_acb_counter_definitiontenant_id, acb_counter_definition_idtenant_id, acd_counter_id
pres.employee_counter_assignmentsfk_eca_counter_definitiontenant_id, eca_counter_definition_idtenant_id, acd_counter_id

Constraints

  • Primary key: pk_attendance_counter_definitionsid
  • Unique: c_uk_acd_tenant_counter_idtenant_id, acd_counter_id
  • Unique: c_uk_acd_tenant_nametenant_id, acd_name

Indexes

NameUniqueMethodColumns / expression
idx_acd_tenant_counter_id_activeNObtreetenant_id, acd_counter_id) WHERE (_deleted = false
idx_acd_tenant_name_activeNObtreetenant_id, acd_name) WHERE (_deleted = false