Changeset 1508 for trunk/LATMOS-Accounts/lib/LATMOS/Accounts
- Timestamp:
- 12/20/15 22:51:02 (9 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.