[GIT] Evergreen ILS branch rel_3_15 updated. fd59101aea24d3f2427089f0261c87319a1b647f

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, rel_3_15 has been updated via fd59101aea24d3f2427089f0261c87319a1b647f (commit) from 8d4417cb7f9a65c3b5eacfbbd6e4d1073999d906 (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 fd59101aea24d3f2427089f0261c87319a1b647f 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: Christine Burns <christine.burns@bc.libraries.coop> 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
participants (1)
-
Git User