|
@@ 1511-1516 (lines=6) @@
|
| 1508 |
|
|
| 1509 |
|
/* @var $otherEntry absences_Entry */ |
| 1510 |
|
|
| 1511 |
|
if ($this->id != $otherEntry->id) { |
| 1512 |
|
$e = new absences_EntryException(absences_translate('There is allready an absence request in the period')); |
| 1513 |
|
$e->entry = $this; |
| 1514 |
|
$e->blocking = true; |
| 1515 |
|
throw $e; |
| 1516 |
|
} |
| 1517 |
|
} |
| 1518 |
|
|
| 1519 |
|
} |
|
@@ 1543-1549 (lines=7) @@
|
| 1540 |
|
$count = $this->checkElementsValidity(); |
| 1541 |
|
|
| 1542 |
|
|
| 1543 |
|
if (0 === $count) |
| 1544 |
|
{ |
| 1545 |
|
$e = new absences_EntryException(absences_translate('At least one vacation right must be used')); |
| 1546 |
|
$e->entry = $this; |
| 1547 |
|
$e->blocking = true; |
| 1548 |
|
throw $e; |
| 1549 |
|
} |
| 1550 |
|
|
| 1551 |
|
|
| 1552 |
|
|
|
@@ 1588-1594 (lines=7) @@
|
| 1585 |
|
$duration = (int) round(100 * $this->getDurationDays()); |
| 1586 |
|
|
| 1587 |
|
|
| 1588 |
|
if (0 === $duration) |
| 1589 |
|
{ |
| 1590 |
|
$e = new absences_EntryException(absences_translate('The selected period is not available')); |
| 1591 |
|
$e->entry = $this; |
| 1592 |
|
$e->blocking = true; |
| 1593 |
|
throw $e; |
| 1594 |
|
} |
| 1595 |
|
|
| 1596 |
|
|
| 1597 |
|
|