Bug 25261: (QA follow-up) Add handling to SCO
Test plan 1/ Enable the feature as per previous patches 2/ Attempt to checkout an item with materials attached via the SCO 3/ Note that the checkut is blocked with the message 'Item must be issued at a circulation desk' 4/ Signoff Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
0d9fc7331a
commit
334c8e94c1
|
|
@ -83,6 +83,8 @@
|
|||
Your contact information seems to be incomplete.
|
||||
[% ELSIF ( circ_error_INVALID_DATE ) %]
|
||||
Due date is not valid.
|
||||
[% ELSIF ( circ_error_additional_materials ) %]
|
||||
Item must be issued at a circulation desk.
|
||||
[% END %]
|
||||
Please see a member of the library staff.
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ elsif ( $patron && ( $op eq 'checkout' ) ) {
|
|||
);
|
||||
my $issue_error;
|
||||
if ( $confirm_required = scalar keys %$needconfirm ) {
|
||||
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 USERBLOCKEDOVERDUE PATRON_CANT PREVISSUE NOT_FOR_LOAN_FORCING ITEM_LOST) ) {
|
||||
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 USERBLOCKEDOVERDUE PATRON_CANT PREVISSUE NOT_FOR_LOAN_FORCING ITEM_LOST additional_materials ) ) {
|
||||
if ( $needconfirm->{$error} ) {
|
||||
$issue_error = $error;
|
||||
$confirmed = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue