Changeset 2138


Ignore:
Timestamp:
05/28/18 18:44:56 (6 years ago)
Author:
nanardon
Message:

Compute departure always for next status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm

    r2136 r2138  
    256256                    my ($attr) = @_; 
    257257                    my $self = $attr->object; 
    258                     $self->_computeEndEmployment($self->base->config('employment_delay') || 0, 1, 1); 
     258                    $self->_computeEndEmployment($self->base->config('employment_delay') || 0, 1); 
    259259                }, 
    260260                label => l('Start of employment'), 
     
    18021802 
    18031803sub _computeEndEmployment { 
    1804     my ($self, $delay, $any, $workday) = @_; 
     1804    my ($self, $delay, $workday) = @_; 
    18051805 
    18061806    $delay ||= 0; 
     
    18451845            } 
    18461846            $end = $tend 
    1847         } elsif ((!$res->{current}) && (!$any)) { 
    1848             last; 
    18491847        } 
    18501848        $end = DateTime->from_epoch(epoch => str2time($res->{lastday})); 
     
    18531851    } 
    18541852    $list_empl->finish; 
    1855  
    1856     $end ||= $pend if($any); 
    18571853 
    18581854    if ($end) { 
Note: See TracChangeset for help on using the changeset viewer.