From rangi@users.sourceforge.net Tue Apr 3 14:34:46 2001 From: Chris Cormack To: koha-devel@lists.koha-community.org Subject: [Koha-devel] CVS: koha/circ circulation.pl,1.17,1.18 Date: Tue, 03 Apr 2001 14:32:39 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6717825871605051439==" --===============6717825871605051439== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Update of /cvsroot/koha/koha/circ In directory usw-pr-cvs1:/tmp/cvs-serv23813/circ Modified Files: circulation.pl=20 Log Message: Making a change to the way charges are handled, the system originally worked = such that if a borrower owed more than $5 issues werent allowed. This worked = fine except that often borrowers wish to borrows say 3 pay videos at $2 each,= then 2 books say. The three pay videos rack up charges of $6 and then they c= ant issue the books until that is paid. Reworked so that it cares about previous charges, not the ones accrued during= current issue process. Index: circulation.pl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/koha/koha/circ/circulation.pl,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** circulation.pl 2001/03/28 03:00:56 1.17 --- circulation.pl 2001/04/03 21:32:37 1.18 *************** *** 73,78 **** #print $query->dump; print startpage(); ! print startmenu('circulation'); !=20 =20 print <dump; print startpage(); ! #print startmenu('circulation'); ! my @inp=3Dstartmenu('circulation'); ! if ($query->param('module') eq 'issues' && $query->param('barcode') eq '' &= & $query->param('charges') eq 'yes'){ ! my $count=3D@inp; ! for (my $i=3D0;$i<$count;$i++){ ! my $bornum=3D$query->param('borrnumber'); ! $inp[$i]=3D~ s/onLoad=3Dfocusinput\(\)/onLoad=3Dfocusinput\(\)\;messenger= \(\"\/cgi-bin\/koha\/pay.pl?bornum=3D$bornum\"\)\;window1.focus\(\)/; ! } ! } ! print @inp; =20 print < EOF !=20 if ($printer && $branch) { =20 --- 93,97 ---- EOF ! ; if ($printer && $branch) { =20 *************** *** 226,230 **** =09 my $barcodeentrytext=3D << "EOF"; !
--- 234,238 ---- =09 my $barcodeentrytext=3D << "EOF"; !
Enter Book Barcode<= /td>
*************** *** 488,492 **** } unless ($invalidduedate) { ! my ($iteminformation, $duedate, $rejected, $question, $questionnumber, $d= efaultanswer, $message) =3D issuebook(\%env, $borrower, $barcode, \%responses= ); unless ($iteminformation) { print << "EOF"; --- 496,502 ---- } unless ($invalidduedate) { ! my @time=3Dlocaltime(time); ! my $date=3D (1900+$time[5])."-".($time[4]+1)."-".$time[3]; ! my ($iteminformation, $duedate, $rejected, $question, $questionnumber, $d= efaultanswer, $message) =3D issuebook(\%env, $borrower, $barcode, \%responses= ,$date); unless ($iteminformation) { print << "EOF"; *************** *** 506,511 **** print << "EOF"
Enter Book Barcode<= /td>
! !
Err= or Issuing Book
$rejected

--- 516,521 ---- print << "EOF" ! !
Error Issuing Book
$rejected

*************** *** 698,702 **** !
=20 --- 708,723 ---- ! =09 ! EOF ! ; ! my $amountold=3D$flags->{'CHARGES'}->{'message'}; ! my @temp=3Dsplit(/\$/,$amountold); ! $amountold=3D$temp[1]; ! print ""; ! if ($flags->{'CHARGES'}){ ! print ""; ! } ! print < =20 *************** *** 806,810 **** } else { if ($flag eq 'CHARGES') { ! $flaginfotext.=3D"$flag{$flag}->{'m= essage'} {'borrowernumber'= } onClick=3D\"openWindow(this, 'Payment', 480,640)\">Payment\n"; } elsif ($flag eq 'WAITING') { my $itemswaiting=3D''; --- 827,831 ---- } else { if ($flag eq 'CHARGES') { ! $flaginfotext.=3D"$flag $flags->{$flag}->{'= message'} {'borrowernumber= '} onClick=3D\"openWindow(this, 'Payment', 480,640)\">Payment\n= "; } elsif ($flag eq 'WAITING') { my $itemswaiting=3D''; *************** *** 838,842 **** } } ! ($flaginfotext) && ($flaginfotext=3D"Flags$flagi= nfotext\n"); my $patrontable=3D << "EOF"; $flagi= nfotext\n"); ! $flaginfotext.=3D"
Flags
"; my $patrontable=3D << "EOF";