
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Evergreen ILS". The branch, main has been updated via d90309de2583d04f5cd3202d6b15ad0009a475a2 (commit) from bd12167bcd1a363ddd5c80780fb5e70feaf60aeb (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit d90309de2583d04f5cd3202d6b15ad0009a475a2 Author: Tiffany Little <tlittle@georgialibraries.org> Date: Wed Feb 5 11:05:55 2025 -0500 LP2094859 Batch receive count on invoices Release-note: Fixes a regression where the count of receivable items on acq invoices was always zero. Signed-off-by: Tiffany Little <tlittle@georgialibraries.org> Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org> 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 9c191fbee9..b6e89e0b9e 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 @@ -582,7 +582,7 @@ placeholder='#' i18n-placeholder min="0" max="{{(li.lineitem_details()||[]).length}}" [disabled]="li.state() === 'received'" - [(ngModel)]="lineitemDetailCountMap[li.id()]" + [ngModel]="countReceivableItems(li)" (ngModelChange)="adjustSelectedLids(li.id(),$event)"/> </div> </ng-container> 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 936999c029..2aa6c850b2 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 @@ -1458,6 +1458,12 @@ export class LineitemListComponent implements OnInit, OnDestroy, OnChanges { return total; } + countReceivableItems(li: IdlObject) : Number { + const sum = li.order_summary(); + + return sum.item_count() - (sum.cancel_count() + sum.recv_count()); + } + receiveSelected() { /* lineitems*/ this.markReceived(this.selectedIds()); } ----------------------------------------------------------------------- Summary of changes: .../src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html | 2 +- .../src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) hooks/post-receive -- Evergreen ILS