Changeset 1508
- Timestamp:
- 12/20/15 22:51:02 (9 years ago)
- Location:
- trunk/LATMOS-Accounts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm
r1506 r1508 219 219 SELECT * FROM employment WHERE "user" = ? and 220 220 (lastday is null or lastday >= now() - '1 days'::interval) 221 order by firstday asc 221 222 }); 222 223 $list_empl->execute($self->id); … … 230 231 if ($end) { 231 232 my $nextstart = DateTime->from_epoch(epoch => str2time($res->{firstday})); 232 if ($end->ymd lt $nextstart->ymd) { 233 my $tend = $end->clone; 234 if (my $days = $self->base->config('employment_delay')) { 235 $tend->add(days => $days); 236 } 237 if ($tend->ymd lt $nextstart->ymd) { 233 238 last; 234 239 } -
trunk/LATMOS-Accounts/man/man8/latmos-accounts-base-sql.pod
r1490 r1508 57 57 attributes (C<accountExpires> for Active Directory). 58 58 59 =head2 User endEmployment 60 61 THis attribute compute the next day the user will leave the company according 62 the employment object registered. 63 64 The parameter C<employment_delay> give the number of days to ignore when a hole 65 exists between two employment 66 59 67 =head2 Group AutoMemberFilter 60 68
Note: See TracChangeset
for help on using the changeset viewer.