Bug 21565: Add modal to SCO confirm
authorLucas Gass <lucas@bywatersolutions.com>
Fri, 24 Apr 2020 18:39:02 +0000 (18:39 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Mon, 11 May 2020 16:40:53 +0000 (16:40 +0000)
commitb325831210dacbb0857f843670eb26b0c5268e6d
tree39611b61f8020b3587ea424be38a495abeb98da4
parent6e53814c58be68bf7392395896c7a66a40d12bd1
Bug 21565: Add modal to SCO confirm

This patch uses the confirmModal framework to add a modal confirm to
SCO Finish.

TO TEST:

1. Enable SCO and go to /cgi-bin/koha/sco/sco-main.pl. Make sure
   SelfCheckReceiptPrompt is set to 'show'
2. Login and click 'Finish' to see the old print alert box.
3. Apply patch and repeat steps 1 and 2.
4. Make sure the modal works for confirming and denying a receipt.
   Checkout some items and make sure everything still functions the
   same.
5. Make sure when printing a receipt that the print dialog automatally
   shows
6. Set SelfCheckReceiptPrompt to 'Don't show' and confirm behavior is
   acceptable.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt