Changeset 1647 for trunk/LATMOS-Accounts
- Timestamp:
- 01/21/16 02:33:44 (8 years ago)
- Location:
- trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Employment.pm
r1646 r1647 100 100 } 101 101 my $firstday = $self->object->get_attributes('firstday'); 102 103 return if ($firstday gt $lastday); 102 104 103 105 my @fd = split('-', $firstday) or return; -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm
r1646 r1647 1425 1425 $expireOn ||= 'endEmployment'; 1426 1426 1427 # We check if matching start exists to know if using end* for expiration is 1428 # safe, even undef 1429 my %end2start = ( 1430 endEmployment => 'startEmployment', 1431 endStrictEmployment => 'startStrictEmployment', 1432 endCurrentEmployment => 'startCurrentEmployment', 1433 endLastEmployment => 'startFirstEmployment', 1434 ); 1435 1427 1436 if ($expireOn ne 'never') { 1428 my $endemploy = $self->_get_attributes("_$expireOn") || 1429 (($self->base->config('unemployed_expire') ||'') eq 'no' 1437 my $endemploy = $self->_get_attributes("_$end2start{$expireOn}") 1438 ? $self->_get_attributes("_$expireOn") 1439 : (($self->base->config('unemployed_expire') ||'') eq 'no' 1430 1440 ? undef 1431 1441 : $self->_get_attributes('create'));
Note: See TracChangeset
for help on using the changeset viewer.