From: Bill Erickson Date: Wed, 25 Aug 2021 16:28:18 +0000 (-0400) Subject: LP1904036 Billing history payments fix date filter X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ccf6a48952499119e0d5a7b6c8951f2b14172ee9;p=evergreen%2Fpines.git LP1904036 Billing history payments fix date filter Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.html index 37ad704fd4..a3f4998e38 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.html @@ -129,13 +129,13 @@
Start Date: - +
End Date: - +
diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.ts index 41d45277c5..b36bd0ed49 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/billing-history.component.ts @@ -118,9 +118,15 @@ export class BillingHistoryComponent implements OnInit { }; } - dateChange(which: string, iso: string) { + dateChange(which: string, d: Date) { - this[which] = iso; + if (which.match(/End/)) { + // Add a day to the end date so the DB query includes all of + // the selected date. + d.setDate(d.getDate() + 1); + } + + this[which] = DateUtil.localYmdFromDate(d); if (which.match(/xacts/)) { this.xactsGrid.reload();