|
@@ 1526-1531 (lines=6) @@
|
| 1523 |
|
|
| 1524 |
|
/* @var $otherEntry absences_Entry */ |
| 1525 |
|
|
| 1526 |
|
if ($this->id != $otherEntry->id) { |
| 1527 |
|
$e = new absences_EntryException(absences_translate('There is allready an absence request in the period')); |
| 1528 |
|
$e->entry = $this; |
| 1529 |
|
$e->blocking = true; |
| 1530 |
|
throw $e; |
| 1531 |
|
} |
| 1532 |
|
} |
| 1533 |
|
|
| 1534 |
|
} |
|
@@ 1561-1567 (lines=7) @@
|
| 1558 |
|
$count = $this->checkElementsValidity(); |
| 1559 |
|
|
| 1560 |
|
|
| 1561 |
|
if (0 === $count) |
| 1562 |
|
{ |
| 1563 |
|
$e = new absences_EntryException(absences_translate('At least one vacation right must be used')); |
| 1564 |
|
$e->entry = $this; |
| 1565 |
|
$e->blocking = true; |
| 1566 |
|
throw $e; |
| 1567 |
|
} |
| 1568 |
|
|
| 1569 |
|
|
| 1570 |
|
|
|
@@ 1608-1614 (lines=7) @@
|
| 1605 |
|
$duration = (int) round(100 * $this->getDurationDays()); |
| 1606 |
|
|
| 1607 |
|
|
| 1608 |
|
if (0 === $duration) |
| 1609 |
|
{ |
| 1610 |
|
$e = new absences_EntryException(absences_translate('The selected period is not available')); |
| 1611 |
|
$e->entry = $this; |
| 1612 |
|
$e->blocking = true; |
| 1613 |
|
throw $e; |
| 1614 |
|
} |
| 1615 |
|
|
| 1616 |
|
|
| 1617 |
|
|