Lines 144-150
if ( $patron && $op eq "returnbook" && $allowselfcheckreturns ) {
Link Here
|
144 |
|
144 |
|
145 |
|
145 |
|
146 |
my $item = Koha::Items->find( { barcode => $barcode } ); |
146 |
my $item = Koha::Items->find( { barcode => $barcode } ); |
147 |
if ( $success && C4::Context->preference("CircConfirmItemParts") ) { |
147 |
if ( $success && C4::Context->preference("CircConfirmItemPartsSCI") ) { |
148 |
if ( defined($item) |
148 |
if ( defined($item) |
149 |
&& $item->materials ) |
149 |
&& $item->materials ) |
150 |
{ |
150 |
{ |
Lines 176-181
elsif ( $patron && ( $op eq 'checkout' ) ) {
Link Here
|
176 |
0, |
176 |
0, |
177 |
C4::Context->preference("AllowItemsOnHoldCheckoutSCO") |
177 |
C4::Context->preference("AllowItemsOnHoldCheckoutSCO") |
178 |
); |
178 |
); |
|
|
179 |
|
180 |
delete $needconfirm->{ADDITIONAL_MATERIALS} unless C4::Context->preference("CircConfirmItemPartsSCO"); |
181 |
|
179 |
my $issue_error; |
182 |
my $issue_error; |
180 |
if ( $confirm_required = scalar keys %$needconfirm ) { |
183 |
if ( $confirm_required = scalar keys %$needconfirm ) { |
181 |
for my $error ( qw( UNKNOWN_BARCODE max_loans_allowed ISSUED_TO_ANOTHER NO_MORE_RENEWALS NOT_FOR_LOAN DEBT WTHDRAWN RESTRICTED RESERVED ITEMNOTSAMEBRANCH EXPIRED DEBARRED CARD_LOST GNA INVALID_DATE UNKNOWN_BARCODE TOO_MANY DEBT_GUARANTEES DEBT_GUARANTORS USERBLOCKEDOVERDUE PATRON_CANT PREVISSUE NOT_FOR_LOAN_FORCING ITEM_LOST ADDITIONAL_MATERIALS ) ) { |
184 |
for my $error ( qw( UNKNOWN_BARCODE max_loans_allowed ISSUED_TO_ANOTHER NO_MORE_RENEWALS NOT_FOR_LOAN DEBT WTHDRAWN RESTRICTED RESERVED ITEMNOTSAMEBRANCH EXPIRED DEBARRED CARD_LOST GNA INVALID_DATE UNKNOWN_BARCODE TOO_MANY DEBT_GUARANTEES DEBT_GUARANTORS USERBLOCKEDOVERDUE PATRON_CANT PREVISSUE NOT_FOR_LOAN_FORCING ITEM_LOST ADDITIONAL_MATERIALS ) ) { |
182 |
- |
|
|