From: Galen Charlton Date: Mon, 29 Nov 2021 16:31:54 +0000 (-0500) Subject: LP#1942220: implement 'Create Invoice from Selected Lineitems' action X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b3bc35dd5071d6489e835e0a1204bd92258bb0b7;p=working%2FEvergreen.git LP#1942220: implement 'Create Invoice from Selected Lineitems' action Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html index 397fc60f2d..7be802ad28 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html @@ -28,6 +28,8 @@ [disabled]="!poId" i18n>Cancel Selected Lineitems + diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.ts index c0690d99cf..50dd19e24e 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.ts @@ -515,6 +515,15 @@ export class LineitemListComponent implements OnInit { }); } + createInvoiceFromSelected() { + const liIds = this.selectedIds(); + if (liIds.length === 0) { return; } + + const path = '/eg/staff/acq/legacy/invoice/view?create=1&' + + liIds.map(x => 'attach_li=' + x.toString()).join('&'); + window.location.href = path; + } + markReceived(liIds: number[]) { if (liIds.length === 0) { return; }