From 155b5250b8753dc48d340643a3bf75d85d3ca58b Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 14 Jun 2017 12:07:52 -0400 Subject: [PATCH] LP#1697954: Provide custom comparator for sorting money on renew mbts.balance_owed often arrives as a string, so we provide here a custom comparator function that runs the values through parseFloat() before comparing them. Signed-off-by: Mike Rylander --- Open-ILS/src/templates/staff/circ/renew/t_renew.tt2 | 2 +- Open-ILS/web/js/ui/default/staff/circ/renew/app.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/staff/circ/renew/t_renew.tt2 b/Open-ILS/src/templates/staff/circ/renew/t_renew.tt2 index 967817647e..7b0fdb791f 100644 --- a/Open-ILS/src/templates/staff/circ/renew/t_renew.tt2 +++ b/Open-ILS/src/templates/staff/circ/renew/t_renew.tt2 @@ -72,7 +72,7 @@ path="acp.alert_message"> + path='mbts.balance_owed' comparator="sort_money">