Ignore:
Timestamp:
09/25/18 17:50:05 (6 years ago)
Author:
nanardon
Message:

Add nationality, native country and assigned attributes

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

    r2116 r2147  
    175175            formtype => 'CHECKBOX', 
    176176            label => l('Hosted'), 
     177        }, 
     178        assigned => { 
     179            formtype => 'CHECKBOX', 
     180            label => l('Assigned'), 
    177181        }, 
    178182        requestId => { 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm

    r2146 r2147  
    14301430                label => l('Hosted'), 
    14311431            }, 
     1432            assigned => { 
     1433                formtype => 'CHECKBOX', 
     1434                label => l('Assigned'), 
     1435            }, 
    14321436            createRequestId => { 
    14331437                label => l('Account Request id') 
    14341438            }, 
    14351439            requestId => { 
    1436                 label => l('Request id') 
    1437             } 
    1438  
     1440                label => l('Request id'), 
     1441            }, 
     1442            nationality => { 
     1443                label => l('Nationality'), 
     1444            }, 
     1445            nativeCountry => { 
     1446                label => l('Native country'), 
     1447            }, 
    14391448    }; 
    14401449 
     
    14721481    }; 
    14731482 
    1474     foreach (qw(contratType managerContact company endcircuit department hosted requestId 
    1475                 contratTypeHistory employer)) { 
     1483    foreach (_reported_atributes(), qw(department managerContact contratTypeHistory)) { 
    14761484        $attrs->{$_}{ro} = $employmentro; 
    14771485    } 
     
    15811589} 
    15821590 
    1583 sub _reported_atributes { qw(contratType endcircuit hosted requestId company employer) } 
     1591sub _reported_atributes { qw(contratType endcircuit hosted assigned requestId company employer) } 
    15841592 
    15851593=head2 applyCurrentEmployment 
     
    16571665    ); 
    16581666 
    1659     my @attributesToReset = (_reported_atributes, qw(department)); 
     1667    my @attributesToReset = (_reported_atributes(), qw(department)); 
    16601668 
    16611669    foreach my $attr (@attributesToReset) { 
Note: See TracChangeset for help on using the changeset viewer.