- Timestamp:
- 01/27/16 16:55:06 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Json/Employment.pm
r1674 r1675 53 53 my %done; 54 54 55 foreach my $emp ( 56 sort { $a cmp $b } 55 my @dates = sort { $a cmp $b } 57 56 map { $employments{$_}->{end} } 58 grep { $employments{$_}->{end} } (keys %employments) ) {57 grep { $employments{$_}->{end} } (keys %employments); 59 58 59 if (!@dates) { 60 push(@dates, $now); 61 foreach (1 .. 12) { 62 push(@dates, DateTime->now->add(months => $_)->ymd); 63 } 64 } 65 66 foreach my $emp (@dates) { 60 67 $done{$emp} and next; 61 68 $done{$emp} = 1;
Note: See TracChangeset
for help on using the changeset viewer.