Changeset 2340


Ignore:
Timestamp:
03/06/20 01:36:10 (4 years ago)
Author:
nanardon
Message:

Fix: set NULL date when last employment has no end

File:
1 edited

Legend:

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

    r2339 r2340  
    21122112    }); 
    21132113    $sth->execute($self->id); 
    2114     warn $self->id; 
     2114 
    21152115    my @values; 
    21162116    my $prevContrat = ':'; 
     
    21382138        if ( my $lastday = $Emp->get_attributes('lastday') ) { 
    21392139            $prevEnd = DateTime::Format::Pg->parse_datetime( $lastday ); 
     2140        } else { 
     2141            $prevEnd = undef; 
    21402142        } 
    21412143 
Note: See TracChangeset for help on using the changeset viewer.