View | Details | Raw Unified | Return to bug 28854
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-3 / +2 lines)
Lines 1329-1339 Link Here
1329
            $('#verify-items-bundle-contents-barcodes').on('input', function (ev) {
1329
            $('#verify-items-bundle-contents-barcodes').on('input', function (ev) {
1330
                let char = ev.target.value.slice(-1);
1330
                let char = ev.target.value.slice(-1);
1331
                if ( char.match(/\n/) ) {
1331
                if ( char.match(/\n/) ) {
1332
                    const barcodes = ev.target.value.split('\n').map(function(s) { return s.trim() });
1332
                    const barcodes = ev.target.value.split('\n').map(function(s) { return s.trim().toUpperCase() });
1333
                    const expected = [];
1333
                    const expected = [];
1334
                    let found = 0;
1334
                    let found = 0;
1335
                    $('#items-bundle-contents-table tbody > tr').each(function () {
1335
                    $('#items-bundle-contents-table tbody > tr').each(function () {
1336
                        const barcode = this.getAttribute('data-barcode');
1336
                        const barcode = this.getAttribute('data-barcode').toUpperCase();
1337
                        expected.push(barcode);
1337
                        expected.push(barcode);
1338
                        if (barcodes.includes(barcode)) {
1338
                        if (barcodes.includes(barcode)) {
1339
                            this.classList.add('ok');
1339
                            this.classList.add('ok');
1340
- 

Return to bug 28854