Ignore:
Timestamp:
11/23/16 15:43:25 (8 years ago)
Author:
nanardon
Message:

add employer attribute to employment/user

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

    r1834 r1860  
    4646sub _has_extended_attributes { 1 } 
    4747 
    48 sub _reported_atributes { qw(contratType endcircuit hosted company) } 
     48sub _reported_atributes { qw(contratType endcircuit hosted company employer) } 
    4949 
    5050sub _get_attr_schema { 
     
    166166            label => l('Company'), 
    167167        }, 
     168        employer => { 
     169            label => l('Employer'), 
     170        }, 
    168171        endcircuit    => { 
    169172            formtype => 'DATE', 
     
    298301    if (! $base->config("allow_pasted_employment")) { 
    299302    # Completed contract are RO, we allow to still set lastday 
    300         foreach (qw(endcircuit firstday contratType department managerContact company)) { 
     303        foreach (qw(endcircuit firstday contratType department managerContact company employer)) { 
    301304            $attrs->{$_}{ro} = sub { 
    302305                my ($self) = $_[0]; 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/User.pm

    r1857 r1860  
    12251225                label => l('Company'), 
    12261226            }, 
     1227            employer => { 
     1228                label => l('Employer'), 
     1229            }, 
    12271230            comment => { 
    12281231                label => l('Comment'), 
     
    13721375 
    13731376    foreach (qw(contratType managerContact company endcircuit department hosted 
    1374                 contratTypeHistory)) { 
     1377                contratTypeHistory employer)) { 
    13751378        $attrs->{$_}{ro} = $employmentro; 
    13761379    } 
Note: See TracChangeset for help on using the changeset viewer.