Renew membership from expiry date or from current date based on a syspref
[koha_gimpoz] / acqui / ordered.pl
index 0ae5dad..92f44a0 100755 (executable)
@@ -19,7 +19,7 @@
 
 =head1 NAME
 
-committed.pl
+ordered.pl
 
 =head1 DESCRIPTION
 
@@ -38,8 +38,7 @@ use C4::Dates;
 my $dbh     = C4::Context->dbh;
 my $input   = new CGI;
 my $fund_id = $input->param('fund');
-my $start   = $input->param('start');
-my $end     = $input->param('end');
+my $fund_code = $input->param('fund_code');
 
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     {
@@ -97,14 +96,13 @@ while ( my $data = $sth->fetchrow_hashref ) {
         push @ordered, $data;
         $total += $subtotal;
     }
-    my $entrydate = C4::Dates->new( $data->{'entrydate'}, 'iso' );
-    $data->{'entrydate'} = $entrydate->output("syspref");
 }
 $total = sprintf( "%.2f", $total );
 
 $template->{VARS}->{'fund'}    = $fund_id;
 $template->{VARS}->{'ordered'} = \@ordered;
 $template->{VARS}->{'total'}   = $total;
+$template->{VARS}->{'fund_code'} = $fund_code;
 
 $sth->finish;