From 1d8e481b5f7f4b7794fde730385077d4dcc82c2c Mon Sep 17 00:00:00 2001 From: Dmitriy-Litvinenko Date: Tue, 6 Feb 2024 12:34:15 +0200 Subject: [PATCH] UIU-3049: Use correct field for display remaining in list --- CHANGELOG.md | 1 + src/components/Accounts/ViewFeesFines/ViewFeesFines.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ba2e8f7f..016ef7340 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ * Enable effective call number column sorting in Open Loans screen. Refs UIU-3002. * User Information in User Edit to display profile picture and update button set. Refs UIU-3005. * Update request header for pay several Fees/fines. Refs UIU-3040. +* Use correct field for display remaining in list. Refs UIU-3049. ## [10.0.4](https://github.com/folio-org/ui-users/tree/v10.0.4) (2023-11-10) [Full Changelog](https://github.com/folio-org/ui-users/compare/v10.0.3...v10.0.4) diff --git a/src/components/Accounts/ViewFeesFines/ViewFeesFines.js b/src/components/Accounts/ViewFeesFines/ViewFeesFines.js index 879cd4a7f..7c3f2bb30 100644 --- a/src/components/Accounts/ViewFeesFines/ViewFeesFines.js +++ b/src/components/Accounts/ViewFeesFines/ViewFeesFines.js @@ -235,7 +235,7 @@ class ViewFeesFines extends React.Component { 'metadata.updatedDate': f => (f.metadata && f.metadata.createdDate !== f.metadata.updatedDate ? : '-'), 'feeFineType': f => (f.feeFineType ? this.showComments(f) : '-'), 'amount': f => (f.amount ? localizeCurrencyAmount(f.amount, stripes.currency, intl) : '-'), - 'remaining': f => localizeCurrencyAmount(f.amount || 0, stripes.currency, intl), + 'remaining': f => localizeCurrencyAmount(f.remaining || 0, stripes.currency, intl), 'paymentStatus.name': f => (f.paymentStatus || {}).name || '-', 'feeFineOwner': f => (f.feeFineOwner ? f.feeFineOwner : '-'), 'title': item => this.formatTitle(item),