Skip to content

Termination (E5) ​

Employee terminations (voluntary departures initiated by the employee) are reported to ERGANI using E5 forms. This package provides dedicated classes for each termination scenario.

Overview ​

FormDocument ClassAction CodeUse Case
E5NVoluntaryResignationWebE5NStandard voluntary resignation
E5OResignationNotificationWebE5ONotification of possible resignation (absent employee)
E5AOResignationAfterNotificationWebE5AOConfirmed resignation after E5O
E5DTerminationByDeathWebE5DTermination due to employee death
E5EVoluntaryExitCompensationWebE5EVoluntary exit with severance pay
E5SVoluntaryRetirementWebE5SVoluntary retirement with compensation
E5DSMandatoryRetirementWebE5DSMandatory retirement (15 years/age limit)

E5 vs E6: Key Difference ​

  • E5 (Termination): Employee-initiated departures - the employee decides to leave
  • E6 (Dismissal): Employer-initiated terminations - the employer ends the relationship

Form Selection Guide ​

Employee Departure Scenario
├── Voluntary resignation (written letter)
│   └── Use E5N
├── Employee absent without notice
│   ├── Initial notification → Use E5O
│   └── Confirmed resignation → Use E5AO (links to E5O)
├── Employee deceased
│   └── Use E5D
├── Voluntary exit program with compensation
│   └── Use E5E
└── Retirement
    ├── Employee requests retirement → Use E5S (voluntary)
    └── 15+ years or age limit reached → Use E5DS (mandatory)

Common Fields ​

All E5 forms share these fields from the base Declaration class:

DateTime Support

All date fields accept both DateTime objects and strings. When a DateTime is passed, it's automatically formatted to DD/MM/YYYY:

php
$declaration->setBirthDate('15/01/1990');           // String
$declaration->setBirthDate(new DateTime('1990-01-15')); // DateTime

Branch/Location ​

MethodAPI FieldTypeRequiredDescription
setBranchCode()f_aa_pararthmatosstringYesBranch number (0 for HQ)
setLaborInspectionServiceCode()f_ypiresia_sepestringYesSEPE code (5 digits)
setDypaServiceCode()f_ypiresia_oaedstringYesDYPA code (6 digits)
setBranchActivityCode()f_kad_pararthmatosstringNoEconomic activity code (KAD)
setMunicipalityCode()f_kallikratis_pararthmatosstringNoKallikratis code (8 digits)

Personal Information ​

MethodAPI FieldTypeRequiredDescription
setLastName()f_eponymostringYesLast name (max 50 chars)
setFirstName()f_onomastringYesFirst name (max 30 chars)
setFatherName()f_onoma_patrosstringYesFather's name (max 30 chars)
setMotherName()f_onoma_mitrosstringNoMother's name (max 30 chars)
setBirthDate()f_birthdatestringYesBirth date (DD/MM/YYYY)
setSex()f_sexSexYesGender (MALE/FEMALE)

Identity ​

MethodAPI FieldTypeRequiredDescription
setNationality()f_yphkoothtastringYesNationality code (3 digits)
setIdType()f_typos_taytothtasstringYesID type code (e.g., 'ΑΤ')
setIdNumber()f_ar_taytothtasstringYesID document number
setIdIssuingAuthority()f_ekdousa_arxhstringNoIssuing authority
setIdIssueDate()f_date_ekdosisstringNoIssue date (DD/MM/YYYY)
setIdExpiryDate()f_date_ekdosis_lixistringNoExpiry date (DD/MM/YYYY)

Tax/Insurance IDs ​

MethodAPI FieldTypeRequiredDescription
setAfm()f_afmstringYesTax ID (9 digits)
setTaxOffice()f_doystringNoTax office code (4 digits)
setAmka()f_amkastringYesSocial Security Number
setAmika()f_amikastringNoIKA insurance number

Employment Details ​

MethodAPI FieldTypeRequiredDescription
setWorkerType()f_xaraktirismosWorkerTypeYesWorker classification
setEmploymentType()f_sxeshapasxolisisEmploymentTypeYesEmployment relationship
setEmploymentStatus()f_kathestosapasxolisisEmploymentStatusYesFull/Part-time/Rotational
setSpecialtyCode()f_eidikothtastringYesSpecialty code (1-6 digits)
setHiringDate()f_proslipsidatestringYesHiring date (DD/MM/YYYY)
setDepartureDate()f_apoxwrisidatestringYesDeparture date (DD/MM/YYYY)

Fixed-Term Dates (Conditional) ​

MethodAPI FieldTypeRequiredDescription
setFixedTermFrom()f_orismenou_apostringCond.Fixed-term start date
setFixedTermTo()f_orismenou_ewsstringCond.Fixed-term end date

Files ​

MethodAPI FieldTypeRequiredDescription
setForeignWorkerFile()f_foreign_filestringNoForeign worker docs (Base64 PDF)
setMinorWorkerFile()f_young_filestringNoMinor worker docs (Base64 PDF)
setComments()f_commentsstringNoAdditional comments (max 100 chars)

Shared Traits ​

E5 forms use these traits for common functionality:

HasSalary ​

Used by: E5N, E5AO, E5D, E5E, E5S, E5DS (NOT E5O)

MethodAPI FieldTypeRequiredDescription
setGrossSalary()f_apodoxesfloatYesGross salary at departure

HasCompensation ​

Used by: E5E, E5S, E5DS only

MethodAPI FieldTypeRequiredDescription
setCompensationAmount()f_posoapozimiosisfloatYesSeverance/compensation amount

HasFormFile ​

Used by: E5N, E5D, E5E, E5S, E5DS (NOT E5O, E5AO)

MethodAPI FieldTypeRequiredDescription
setFormFile()f_filestringYesSigned form (Base64 PDF)

HasNotificationReference ​

Used by: E5AO only

MethodAPI FieldTypeRequiredDescription
setNotificationProtocol()f_oxlhsh_protocolstringYesE5O protocol number
setNotificationDate()f_oxlhsh_date_ypovolisstringYesE5O submission date

Enums ​

WorkerType ​

CaseValueEnglishGreek
WORKER0Blue-collar workerΕργάτης
EMPLOYEE1White-collar employeeΥπάλληλος

EmploymentType ​

CaseValueEnglishGreek
INDEFINITE0Indefinite termΑορίστου χρόνου
FIXED_TERM1Fixed termΟρισμένου χρόνου
PROJECT2Project-basedΟρισμένου έργου

E5O Restriction

E5O (Notification) only accepts INDEFINITE or FIXED_TERM - not PROJECT.

EmploymentStatus ​

CaseValueEnglishGreek
FULL0Full-timeΠλήρης
PARTIAL1Part-timeΜερική
ROTATIONAL2RotationalΕκ περιτροπής

Sex ​

CaseValueEnglishGreek
MALE0MaleΆνδρας
FEMALE1FemaleΓυναίκα

Quick Comparison ​

FeatureE5NE5OE5AOE5DE5EE5SE5DS
SalaryYesNoYesYesYesYesYes
CompensationNoNoNoNoYesYesYes
Form FileYesNoNoYesYesYesYes
Notification RefNoNoYesNoNoNoNo
Notification MethodsNoYesNoNoNoNoNo

See Also ​

Released under the MIT License.