Changeset 1648 for trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases
- Timestamp:
- 01/21/16 12:32:53 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/Employment.pm
r1647 r1648 46 46 sub _has_extended_attributes { 1 } 47 47 48 sub _reported_atributes { qw(contratType endcircuit hosted ) }48 sub _reported_atributes { qw(contratType endcircuit hosted company) } 49 49 50 50 sub _get_attr_schema { … … 361 361 appliedEmployement => $self->id, 362 362 ); 363 foreach my $attr (_reported_atributes(), qw( companydepartment managerContact)) {363 foreach my $attr (_reported_atributes(), qw(department managerContact)) { 364 364 my $uval = $user->get_attributes($attr) || ''; 365 365 my $cval = $self->get_attributes($attr) || ''; … … 385 385 my ($ouser) = @_; 386 386 387 $ouser->computeEmploymentDate; 388 387 389 my %changes = ( 388 390 appliedEmployement => undef, 389 391 ); 390 foreach my $attr (LATMOS::Accounts::Bases::Sql::Employment::_reported_atributes) { 392 393 my @attributesToReset = _reported_atributes; 394 if (!$ouser->_get_attributes('_startEmployment')) { 395 push(@attributesToReset, qw(department)); 396 } 397 398 foreach my $attr (_reported_atributes) { 391 399 my $default = $ouser->base->config("unemployment.$attr") || ''; 392 400 my $old = $ouser->_get_attributes($attr) || '';
Note: See TracChangeset
for help on using the changeset viewer.