Lines 334-343
sub ParseCgiForBorrower {
Link Here
|
334 |
|
334 |
|
335 |
my $dob_dt; |
335 |
my $dob_dt; |
336 |
$dob_dt = eval { dt_from_string( $borrower{'dateofbirth'} ); } |
336 |
$dob_dt = eval { dt_from_string( $borrower{'dateofbirth'} ); } |
337 |
if ( defined( $borrower{'dateofbirth'} ) ); |
337 |
if ( $borrower{'dateofbirth'} ); |
338 |
|
338 |
|
339 |
$borrower{'dateofbirth'} = output_pref ( { dt => $dob_dt, dateonly => 1, dateformat => 'iso' }) |
339 |
if ( $dob_dt ) { |
340 |
if ( $dob_dt ); |
340 |
$borrower{'dateofbirth'} = output_pref ( { dt => $dob_dt, dateonly => 1, dateformat => 'iso' } ); |
|
|
341 |
} |
342 |
else { |
343 |
# Trigger validation |
344 |
$borrower{'dateofbirth'} = undef; |
345 |
} |
341 |
|
346 |
|
342 |
return %borrower; |
347 |
return %borrower; |
343 |
} |
348 |
} |
344 |
- |
|
|