Fixed a little bug so that flags get recalculated after an item is issued.

This commit is contained in:
finlayt 2002-08-21 01:40:47 +00:00
parent 98239184b7
commit 236e3babd1

View file

@ -101,7 +101,7 @@ if ($print eq 'yes' && $borrowernumber ne ''){
# get the currently issued books...... # get the borrower information.....
my $borrower; my $borrower;
my $flags; my $flags;
if ($borrowernumber) { if ($borrowernumber) {
@ -120,14 +120,14 @@ if (my $qnumber = $query->param('questionnumber')) {
} }
# if the barcode is set
my ($iteminformation, $duedate, $rejected, $question, $questionnumber, $defaultanswer); my ($iteminformation, $duedate, $rejected, $question, $questionnumber, $defaultanswer);
my $year=$query->param('year'); my $year=$query->param('year');
my $month=$query->param('month'); my $month=$query->param('month');
my $day=$query->param('day'); my $day=$query->param('day');
# if the barcode is set
if ($barcode) { if ($barcode) {
$barcode = cuecatbarcodedecode($barcode); $barcode = cuecatbarcodedecode($barcode);
my ($datedue, $invalidduedate) = fixdate($year, $month, $day); my ($datedue, $invalidduedate) = fixdate($year, $month, $day);
@ -141,6 +141,11 @@ if ($barcode) {
} }
} }
# reload the borrower info for the sake of reseting the flags.....
if ($borrowernumber) {
($borrower, $flags) = getpatroninformation(\%env,$borrowernumber,0);
}
################################################################################## ##################################################################################
# HTML code.... # HTML code....