Skip to main content

pres.custom_calculations

Schema: pres
English table: pres.custom_calculations
Italian original table: pres.calcoli
Description: Configuration for end-of-month calculation rules, scripts, and filters for payroll variables.

Overview

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

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOIdentifier of the related record.
cca_idcalc_idintegerNOIdentifier of the related cca.
tenant_idtenant_idintegerNOIdentifier of the related tenant.
cca_descriptioncalc_descrizionecharacter(40)NO''::bpcharDescription of cca description.
cca_from_departmentcalc_da_repcharacter(4)NO''::bpcharValue of cca from department.
cca_to_departmentcalc_a_repcharacter(4)NO''::bpcharValue of cca to department.
cca_from_job_titlecalc_da_qualcharacter(4)NO''::bpcharValue of cca from job title.
cca_to_job_titlecalc_a_qualcharacter(4)NO''::bpcharValue of cca to job title.
cca_from_employee_codecalc_da_matricharacter(6)NO''::bpcharCode of cca from employee code.
cca_to_employee_codecalc_a_matricharacter(6)NO''::bpcharCode of cca to employee code.
cca_from_companycalc_da_dittacharacter(4)NO''::bpcharValue of cca from company.
cca_to_companycalc_a_dittacharacter(4)NO''::bpcharValue of cca to company.
cca_from_branchcalc_da_filialecharacter(2)NO''::bpcharValue of cca from branch.
cca_to_branchcalc_a_filialecharacter(2)NO''::bpcharValue of cca to branch.
cca_reason_codecalc_cod_caucharacter(4)NO''::bpcharCode of cca reason code.
cca_include_zero_valuescalc_sizerobooleanNOfalseFlag to determine if results equal to zero should be processed.
cca_calculation_scriptcalc_istruztextNO''::textText field containing the custom logic or script to be executed.
cca_target_variable_namecalc_var_namecharacter(30)NO''::bpcharThe name of the resulting variable where the calculation result is stored.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_cca_reason_typetenant_id, cca_reason_codepres.attendance_reasonstenant_id, ar_codeCASCADERESTRICT
fk_cca_tenanttenant_idcloud.tenantsten_internal_idCASCADECASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_custom_calculationsid
  • Unique: c_uk_cca_id_tenanttenant_id, cca_id

Indexes

No indexes detected.