Ignore:
Timestamp:
10/07/21 19:03:50 (3 years ago)
Author:
nanardon
Message:

Add attribute BAP and Grade

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Employment.pm

    r2385 r2478  
    88use LATMOS::Accounts::Log; 
    99use LATMOS::Accounts::I18N; 
     10use LATMOS::Accounts::Bases::Sql::User; 
    1011use Date::Parse; 
    1112use DateTime; 
     
    161162            label => l('Department'), 
    162163        }, 
     164        grade => { }, 
     165        BAP   => { }, 
    163166        company => { 
    164167            label => l('Company'), 
     
    308311    if (! $base->config("allow_pasted_employment")) { 
    309312    # Completed contract are RO, we allow to still set lastday 
    310         foreach (qw(endcircuit firstday contratType department managerContact company employer)) { 
     313        foreach (LATMOS::Accounts::Bases::Sql::User::_reported_atributes(), qw(firstday contratType managerContact)) { 
    311314            $attrs->{$_}{ro} = sub { 
    312315                my ($self) = $_[0]; 
Note: See TracChangeset for help on using the changeset viewer.