|
Lines 148-154
sub checkout {
Link Here
|
| 148 |
$circ->screen_msg("Invalid Item"); |
148 |
$circ->screen_msg("Invalid Item"); |
| 149 |
} |
149 |
} |
| 150 |
elsif ( $item->{borrowernumber} |
150 |
elsif ( $item->{borrowernumber} |
| 151 |
&& !_ci_cardnumber_cmp( $item->{borrowernumber}, $patron_id ) ) |
151 |
&& !_ci_cardnumber_cmp( $item->{borrowernumber}, $patron->borrowernumber ) ) |
| 152 |
{ |
152 |
{ |
| 153 |
$circ->screen_msg("Item checked out to another patron"); |
153 |
$circ->screen_msg("Item checked out to another patron"); |
| 154 |
} |
154 |
} |
|
Lines 160-166
sub checkout {
Link Here
|
| 160 |
# If the item is already associated with this patron, then |
160 |
# If the item is already associated with this patron, then |
| 161 |
# we're renewing it. |
161 |
# we're renewing it. |
| 162 |
$circ->renew_ok( $item->{borrowernumber} |
162 |
$circ->renew_ok( $item->{borrowernumber} |
| 163 |
&& _ci_cardnumber_cmp( $item->{borrowernumber}, $patron_id ) ); |
163 |
&& _ci_cardnumber_cmp( $item->{borrowernumber}, $patron->borrowernumber ) ); |
| 164 |
|
164 |
|
| 165 |
$item->{borrowernumber} = $patron_id; |
165 |
$item->{borrowernumber} = $patron_id; |
| 166 |
$item->{due_date} = $circ->{due}; |
166 |
$item->{due_date} = $circ->{due}; |
| 167 |
- |
|
|