Resources

Absence Consolidation Rules

Biings automatically merges absences together after each data sychronisation. The absence consolidation algorithm runs every time Biings synchronises with an absence data source. The different rules applied during this process are described on this page.

Rule 1


Applied when an open absence overlaps a closed one. Both absences have the same type.

Context 1.1
    A    |————————————————————————···
    B                        |———————————————————|
Context 1.2
    A    |————————————————————————···
    B                        |————————————————————···

Consolidation rule: → When A and B have the same rate: B is deleted and a log message is added to the sync-report. → When A and B have different rates: B is deleted and an error log is added to the sync-report.


Rule 2


Applied when an open absence overlaps a closed one. Absences have different types.

Context 2.1
    A    |————————————————————————···
    B                        |———————————————————|
Context 2.2
    A    |————————————————————————···
    B                        |————————————————————···

Consolidation rule:B is deleted and an error log is added to the sync-report.


Rule 3


Applied when a closed absence starts before, or the same day, as another one ends. Both absences have the same type.

Context 3.1
    A    |———————————————————|
    B                |———————————————————|
Context 3.2 ( B starts the SAME day as A ends)
    A    |———————————————————|
    B                        |———————————————————|

Consolidation rule: → When A and B have the same rate: B is merged and a correction log is added to the sync-report. → When A and B have different rates: B’s start date is updated to A’s end date and an error log is added to the sync-report.


Rule 4


Applied when a closed absence starts before, or the same day, as another one ends. Absences have different types.

Context 4.1
    A    |———————————————————|
    B                |———————————————————|
Context 4.2 ( B starts the SAME day as A ends)
    A    |———————————————————|
    B                        |———————————————————|

Consolidation rule:B’s start date is updated to A’s end date and an error log is added to the sync-report.


Rule 5


Applied when an open absence starts before, or the same day, as another closed one ends. Absences have the same type.

Context 5.1
    A    |———————————————————|
    B                 |——————————————————···
Context 5.2 ( B starts the SAME day as A ends)
    A    |———————————————————|
    B                        |——————————————————···

Consolidation rule: → When A and B have the same rate: B is merged and a correction log is added to sync-report. → When A and B have different rates: B’s start date is updated to A’s end date and an error log is added to the sync-report.


Rule 6


An open absence starts before, or the same day, as another closed one ends. Absences have different types.

Context 6.1
    A    |———————————————————|
    B                 |——————————————————···
Context 6.2 ( B starts the SAME day as A ends)
    A    |———————————————————|
    B                        |——————————————————···

Consolidation rule:B’s start date is updated to A’s end date and an error log is added to the sync-report.


Rule 7


Applied when a closed absence starts exactly one day after another one ends. Both absences have the same type.

    A    |———————————————————|  1d
    B                           1d  |———————————————————|

Consolidation rule: → When A and B have the same rate: B is merged into A if consolidate-one-day is enabled. → When A and B have the same rate: B is linked to A if link-one-day is enabled. → When A and B have the same rate: B is merged into A if both consolidate-one-day and link-one-day are enabled. → When A and B have different rates: B is linked to A if auto-linking is enabled, otherwise nothing is done.


Rule 8


Applied when an open absence starts exactly one day after another one ends. Both absences have the same type.

    A    |———————————————————|  1d
    B                           1d  |————————————————————···

Consolidation rule: → When A and B have the same rate: A is re-open, B is deleted and a log message is added to the sync-report. → When A and B have different rates: B is linked to A if auto-linking is enabled, otherwise nothing is done.


Rule 9


A closed absence is contained into another closed one. Both absences have the same type.

Context 9.1
    A    |———————————————————|
    B         |—————————|
Context 9.2
    A    |———————————————————|
    B    |————————|
Context 9.3
    A    |———————————————————|
    B              |—————————|
Context 9.4
    A    |———————————————————|
    B    |———————————————————|

Consolidation rule: → When A and B have the same rate: B is merged into A and a correction log is added to sync-report. → When A and B have different rates: B is deleted and an error log is added to the sync-report.


Rule 10


Applied when a closed absence is contained into another closed one. Absences have different types.

Context 10.1
    A    |———————————————————|
    B         |————————|
Context 10.2
    A    |———————————————————|
    B    |————————|
Context 10.3
    A    |———————————————————|
    B              |—————————|
Context 10.4
    A    |———————————————————|
    B    |———————————————————|

Consolidation rule:B is deleted and an error log is added to the sync-report.


Rule 11 / The week-end rule


Applied when a closed absence starts exactly two days after another one ends, and those days are Saturday and Sunday. Both absences have the same type. This merges absences that were cut because of a weekend.

    A    |———————————————————|   Weekend
    B                            Weekend   |———————————————————|

Consolidation rule: → When A and B have the same rate: If consolidate-weekends are enabled, B is merged into A and a correction log is added to the sync-report. If consolidate-weekends is disabled, nothing is done. → When A and B have different rates: B is linked to A if both auto-linking and consolidate-weekends are enabled, otherwise nothing is done.