|
@@ 1865-1870 (lines=6) @@
|
| 1862 |
|
|
| 1863 |
|
/* @var $otherEntry absences_Entry */ |
| 1864 |
|
|
| 1865 |
|
if ($this->id != $otherEntry->id) { |
| 1866 |
|
$e = new absences_EntryException(absences_translate('There is allready an absence request in the period')); |
| 1867 |
|
$e->entry = $this; |
| 1868 |
|
$e->blocking = true; |
| 1869 |
|
throw $e; |
| 1870 |
|
} |
| 1871 |
|
} |
| 1872 |
|
|
| 1873 |
|
} |
|
@@ 1897-1903 (lines=7) @@
|
| 1894 |
|
$count = $this->checkElementsValidity(); |
| 1895 |
|
|
| 1896 |
|
|
| 1897 |
|
if (0 === $count) |
| 1898 |
|
{ |
| 1899 |
|
$e = new absences_EntryException(absences_translate('At least one vacation right must be used')); |
| 1900 |
|
$e->entry = $this; |
| 1901 |
|
$e->blocking = true; |
| 1902 |
|
throw $e; |
| 1903 |
|
} |
| 1904 |
|
|
| 1905 |
|
|
| 1906 |
|
|
|
@@ 1942-1948 (lines=7) @@
|
| 1939 |
|
$duration = (int) round(100 * $this->getDurationDays()); |
| 1940 |
|
|
| 1941 |
|
|
| 1942 |
|
if (0 === $duration) |
| 1943 |
|
{ |
| 1944 |
|
$e = new absences_EntryException(absences_translate('The selected period is not available')); |
| 1945 |
|
$e->entry = $this; |
| 1946 |
|
$e->blocking = true; |
| 1947 |
|
throw $e; |
| 1948 |
|
} |
| 1949 |
|
|
| 1950 |
|
|
| 1951 |
|
|