From dac1016c777c821b455f9be34e093a1441a52326 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 14 Jun 2017 12:11:27 -0400 Subject: [PATCH] LP#1697954: Provide custom comparator for sorting money on checkin 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 Signed-off-by: Andrea Neiman Signed-off-by: Bill Erickson --- .../src/templates/staff/circ/checkin/t_checkin_table.tt2 | 2 +- Open-ILS/web/js/ui/default/staff/circ/checkin/app.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 b/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 index 5c6268a1ce..920ee2b9e1 100644 --- a/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 +++ b/Open-ILS/src/templates/staff/circ/checkin/t_checkin_table.tt2 @@ -30,7 +30,7 @@ path="acp.alert_message"> + path='mbts.balance_owed' comparator="sort_money">