Ignore:
Timestamp:
11/09/17 19:33:38 (7 years ago)
Author:
nanardon
Message:

Show all departments employee were when empl. are merged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Summary/ListEmployments.pm

    r2124 r2126  
    117117                    if ($pEnd->ymd('-') ge $_->{firstday}) { 
    118118                        $prev->{lastday} = $_->{lastday}; 
     119 
     120                        if (my $dpmt = $_->{department}) { 
     121                            if (!$prev->{department}) { 
     122                                $prev->{department} = $dpmt; 
     123                            } elsif ($prev->{department} !~ m/\b$dpmt\b/) { 
     124                                $prev->{department} .= ", $dpmt"; 
     125                            } 
     126                        } 
    119127                        next; 
    120128                    } 
Note: See TracChangeset for help on using the changeset viewer.