View | Details | Raw Unified | Return to bug 13813
Collapse All | Expand All

(-)a/members/moremember.pl (-5 / +3 lines)
Lines 42-48 use C4::Output; Link Here
42
use C4::Members;
42
use C4::Members;
43
use C4::Members::Attributes;
43
use C4::Members::Attributes;
44
use C4::Members::AttributeTypes;
44
use C4::Members::AttributeTypes;
45
use C4::Dates;
46
use C4::Reserves;
45
use C4::Reserves;
47
use C4::Circulation;
46
use C4::Circulation;
48
use C4::Koha;
47
use C4::Koha;
Lines 134-140 foreach (qw(dateenrolled dateexpiry dateofbirth)) { Link Here
134
			$data->{$_} = '';
133
			$data->{$_} = '';
135
			next;
134
			next;
136
		}
135
		}
137
		$userdate = C4::Dates->new($userdate,'iso')->output('syspref');
136
		$userdate = output_pref({ dt => dt_from_string( $userdate, 'iso' ), dateonly => 1 });
138
		$data->{$_} = $userdate || '';
137
		$data->{$_} = $userdate || '';
139
		$template->param( $_ => $userdate );
138
		$template->param( $_ => $userdate );
140
}
139
}
Lines 148-154 if ( IsDebarred($borrowernumber) ) { Link Here
148
    $template->param( 'userdebarred' => 1, 'flagged' => 1 );
147
    $template->param( 'userdebarred' => 1, 'flagged' => 1 );
149
    my $debar = $data->{'debarred'};
148
    my $debar = $data->{'debarred'};
150
    if ( $debar ne "9999-12-31" ) {
149
    if ( $debar ne "9999-12-31" ) {
151
        $template->param( 'userdebarreddate' => C4::Dates::format_date($debar) );
150
        $template->param( 'userdebarreddate' => output_pref({ dt => dt_from_string( $debar, 'iso' ), dateonly => 1 }) );
152
        $template->param( 'debarredcomment'  => $data->{debarredcomment} );
151
        $template->param( 'debarredcomment'  => $data->{debarredcomment} );
153
    }
152
    }
154
}
153
}
Lines 367-373 $template->param( Link Here
367
    categoryname    => $data->{'description'},
366
    categoryname    => $data->{'description'},
368
    was_renewed     => $input->param('was_renewed') ? 1 : 0,
367
    was_renewed     => $input->param('was_renewed') ? 1 : 0,
369
    branch          => $branch,
368
    branch          => $branch,
370
    todaysdate      => C4::Dates->today(),
369
    todaysdate      => output_pref({ dt => DateTime->now(), dateonly => 1 }),
371
    totalprice      => sprintf("%.2f", $totalprice),
370
    totalprice      => sprintf("%.2f", $totalprice),
372
    totaldue        => sprintf("%.2f", $total),
371
    totaldue        => sprintf("%.2f", $total),
373
    totaldue_raw    => $total,
372
    totaldue_raw    => $total,
374
- 

Return to bug 13813