From: Bill Erickson Date: Mon, 13 Jul 2020 15:45:11 +0000 (-0400) Subject: LPXXX Angular Volcopy next bc skips disabled X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b0f9238efc0cbf19de34398f319bf04a7ad3a93d;p=working%2FEvergreen.git LPXXX Angular Volcopy next bc skips disabled Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts index 7f1f8b8c6a..9791282cc9 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/vol-edit.component.ts @@ -269,6 +269,7 @@ export class VolEditComponent implements OnInit { }); } + // Focus and select the next editable barcode. selectNextBarcode(id: number, previous?: boolean) { let found = false; let nextId: number = null; @@ -283,10 +284,12 @@ export class VolEditComponent implements OnInit { if (nextId !== null) { return; } // In case we have to loop back to the first copy. - if (firstId === null) { firstId = copy.id(); } + if (firstId === null && this.barcodeCanChange(copy)) { + firstId = copy.id(); + } if (found) { - if (nextId === null) { + if (nextId === null && this.barcodeCanChange(copy)) { nextId = copy.id(); } } else if (copy.id() === id) {