3 #script to update charges for overdue in database
5 # is called by charges.pl
6 # written 1/1/2000 by chris@katipo.co.nz
14 #print $input->header;
16 #print startmenu('issue');
21 my @names=$input->param();
23 foreach my $key (@names){
25 my $bor=substr($key,0,1);
28 my $data=$input->param($key);
29 my @dat=split(',',$data);
30 # print "$bor $cat $dat[0] $dat[1] $dat[2] <br> ";
31 my $sth=$dbh->prepare("Update categoryitem set fine=$dat[0],startcharge=$dat[1],chargeperiod=$dat[2] where
32 categorycode='$bor' and itemtype='$cat'");
37 print $input->redirect("/cgi-bin/koha/charges.pl");
38 #print endmenu('issue');