Changeset 2141
- Timestamp:
- 06/13/18 16:01:03 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm
r2139 r2141 256 256 my ($attr) = @_; 257 257 my $self = $attr->object; 258 $self->_computeEndEmployment($self->base->config('employment_delay') || 0, 1 );258 $self->_computeEndEmployment($self->base->config('employment_delay') || 0, 1, 1); 259 259 }, 260 260 label => l('Start of employment'), … … 1803 1803 1804 1804 sub _computeEndEmployment { 1805 my ($self, $delay, $ workday) = @_;1805 my ($self, $delay, $any, $workday) = @_; 1806 1806 1807 1807 $delay ||= 0; … … 1846 1846 } 1847 1847 $end = $tend 1848 } elsif ((!$res->{current}) && (!$any)) { 1849 last; 1848 1850 } 1849 1851 $end = DateTime->from_epoch(epoch => str2time($res->{lastday})); … … 1852 1854 } 1853 1855 $list_empl->finish; 1856 1857 $end ||= $pend if($any); 1854 1858 1855 1859 if ($end) {
Note: See TracChangeset
for help on using the changeset viewer.